{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "#imports data\n",
    "\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "import xlrd\n",
    "import csv\n",
    "import itertools\n",
    "import random\n",
    "from numpy.random import choice\n",
    "from openpyxl import load_workbook\n",
    "from openpyxl import Workbook\n",
    "\n",
    "\n",
    "book = load_workbook(\"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Final Dataset.xlsx\")\n",
    "sheet = book.active\n",
    "\n",
    "data = [['' for x in range(sheet.max_column)] for y in range(sheet.max_row)] #[row][col]\n",
    "\n",
    "i = 0\n",
    "firstrow = True\n",
    "for row in sheet.values:\n",
    "    if firstrow == False:\n",
    "        data[i] = row\n",
    "        i = i + 1\n",
    "    else:\n",
    "        firstrow = False\n",
    "\n",
    "\n",
    "\n",
    "    \n",
    "    \n",
    "    \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "#figure out which party district court favored\n",
    "\n",
    "i = 0\n",
    "PCM = ['']*len(data)\n",
    "\n",
    "while i < len(data):\n",
    "    if data[i][21] == 'NA':\n",
    "        if data[i][22] == 'B':\n",
    "            PCM[i] = 'B'\n",
    "        if data[i][18] == 'A' or data[i][18] == 'D' or (data[i][18] == 'M' and data[i][19] == 'M'):\n",
    "            if data[i][22] == 'P':\n",
    "                PCM[i] = 'C'\n",
    "            elif data[i][22] == 'C':\n",
    "                PCM[i] = 'P'\n",
    "    else:\n",
    "        PCM[i] = data[i][21]\n",
    "    \n",
    "    i = i + 1\n",
    "\n",
    "    \n",
    "    \n",
    "df = pd.DataFrame(PCM).T\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//District court favored.xlsx\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 88,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[['', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Total'], ['Aff', 229, 2, 307, 90, 290, 359, 397, 139, 16, 373, 65, 290, 333, 7, 102, 4, 94, 328, 264, 359, 337, 84, 1500], ['Oth', 78, 2, 118, 32, 121, 109, 135, 47, 16, 112, 18, 128, 109, 3, 36, 1, 35, 144, 108, 118, 129, 28, 537], ['prob(Aff)', 0.745928338762215, 0.5, 0.7223529411764706, 0.7377049180327869, 0.7055961070559611, 0.7670940170940171, 0.7462406015037594, 0.7473118279569892, 0.5, 0.7690721649484537, 0.7831325301204819, 0.69377990430622, 0.753393665158371, 0.7, 0.7391304347826086, 0.8, 0.7286821705426356, 0.6949152542372882, 0.7096774193548387, 0.7526205450733753, 0.723175965665236, 0.75, 0.7363770250368189], ['numDissents', 5, 0, 3, 3, 10, 11, 8, 5, 2, 10, 2, 6, 2, 0, 0, 0, 6, 4, 46, 4, 10, 1, 0], ['dissentmoreinfavorofP', 4, 0, 3, 1, 8, 2, 0, 4, 1, 4, 1, 5, 0, 0, 0, 0, 1, 2, 36, 0, 1, 1, 0], ['dissentmoreinfavorofC', 1, 0, 0, 1, 2, 9, 7, 1, 0, 6, 1, 1, 2, 0, 0, 0, 4, 2, 8, 4, 9, 0, 0], ['Given P win num Aff', 38, 0, 51, 13, 54, 54, 61, 16, 4, 62, 8, 55, 52, 0, 12, 0, 13, 54, 44, 62, 45, 16, 0], ['Given P win num other', 35, 0, 47, 13, 55, 50, 34, 18, 9, 38, 5, 70, 40, 1, 20, 1, 13, 67, 62, 43, 32, 12, 0], ['Given P win prob Aff', 0.5205479452054794, 0, 0.5204081632653061, 0.5, 0.4954128440366973, 0.5192307692307693, 0.6421052631578947, 0.47058823529411764, 0.3076923076923077, 0.62, 0.6153846153846154, 0.44, 0.5652173913043478, 0.0, 0.375, 0.0, 0.5, 0.4462809917355372, 0.41509433962264153, 0.5904761904761905, 0.5844155844155844, 0.5714285714285714, 0], ['Given C win num Aff', 183, 2, 238, 70, 218, 288, 317, 116, 12, 290, 54, 222, 262, 7, 88, 4, 75, 256, 207, 275, 274, 62, 0], ['Given C win num other', 13, 0, 21, 7, 26, 28, 48, 4, 1, 31, 4, 21, 26, 2, 7, 0, 15, 27, 28, 31, 48, 5, 0], ['Given C win prob Aff', 0.9336734693877551, 1.0, 0.918918918918919, 0.9090909090909091, 0.8934426229508197, 0.9113924050632911, 0.8684931506849315, 0.9666666666666667, 0.9230769230769231, 0.9034267912772586, 0.9310344827586207, 0.9135802469135802, 0.9097222222222222, 0.7777777777777778, 0.9263157894736842, 1.0, 0.8333333333333334, 0.9045936395759717, 0.8808510638297873, 0.8986928104575164, 0.8509316770186336, 0.9253731343283582, 0], ['Given M win num Aff', 8, 0, 18, 7, 18, 17, 19, 7, 0, 21, 3, 13, 19, 0, 2, 0, 6, 18, 13, 22, 18, 6, 0], ['Given M win num other', 30, 2, 50, 12, 40, 31, 53, 25, 6, 43, 8, 37, 43, 0, 9, 0, 7, 50, 18, 44, 49, 11, 0], ['Given M win P Aff', 0.21052631578947367, 0.0, 0.2647058823529412, 0.3684210526315789, 0.3103448275862069, 0.3541666666666667, 0.2638888888888889, 0.21875, 0.0, 0.328125, 0.2727272727272727, 0.26, 0.3064516129032258, 0, 0.18181818181818182, 0, 0.46153846153846156, 0.2647058823529412, 0.41935483870967744, 0.3333333333333333, 0.26865671641791045, 0.35294117647058826, 0]]\n"
     ]
    }
   ],
   "source": [
    "#PCM affirmance data dissents accounted for\n",
    "\n",
    "Judges = ['', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Total']\n",
    "\n",
    "rows, cols = 16, len(Judges)\n",
    "rateAff = [[0 for i in range(cols)] for j in range(rows)]\n",
    "rateAff[0] = Judges\n",
    "rateAff[1][0] = 'Aff'\n",
    "rateAff[2][0] = 'Oth'\n",
    "rateAff[3][0] = 'prob(Aff)'\n",
    "rateAff[4][0] = 'numDissents'\n",
    "rateAff[5][0] = 'dissentmoreinfavorofP'\n",
    "rateAff[6][0] = 'dissentmoreinfavorofC'\n",
    "\n",
    "rateAff[7][0] = 'Given P win num Aff'\n",
    "rateAff[8][0] = 'Given P win num other'\n",
    "rateAff[9][0] = 'Given P win prob Aff'\n",
    "rateAff[10][0] = 'Given C win num Aff'\n",
    "rateAff[11][0] = 'Given C win num other'\n",
    "rateAff[12][0] = 'Given C win prob Aff'\n",
    "rateAff[13][0] = 'Given M win num Aff'\n",
    "rateAff[14][0] = 'Given M win num other'\n",
    "rateAff[15][0] = 'Given M win P Aff'\n",
    "\n",
    "k = 0\n",
    "numjudges = len(Judges) - 1 #b/c it's offset by 1, you need to make it one larger\n",
    "while k < len(data):\n",
    "    \n",
    "    if (data[k][17] == 'Yes'): #means there's a dissent to account for\n",
    "        \n",
    "        dissentingjudge1 = ''\n",
    "        dissentingjudge2 = ''\n",
    "        #identify dissenting judge(s)\n",
    "        if (data[k][11] == 'Both' or data[k][11] == 'Dissenting'):\n",
    "            dissentingjudge1 = data[k][12]\n",
    "            \n",
    "            ji = 1\n",
    "            while ji < numjudges:\n",
    "                if (data[k][12] == Judges[ji]):\n",
    "                    if data[k][28] == 'A':\n",
    "                        rateAff[1][ji] =  rateAff[1][ji] + 1\n",
    "                        rateAff[4][ji] = rateAff[4][ji] + 1\n",
    "                        \n",
    "                        if (data[k][35] == 'P'):\n",
    "                            rateAff[5][ji] = rateAff[5][ji] + 1\n",
    "                        if (data[k][35] == 'C'):\n",
    "                            rateAff[6][ji] = rateAff[6][ji] + 1\n",
    "                        \n",
    "                            \n",
    "                        if data[k][29] == 'P':\n",
    "                            rateAff[7][ji] = rateAff[7][ji] + 1\n",
    "                        elif data[k][29] == 'C':\n",
    "                            rateAff[10][ji] = rateAff[10][ji] + 1\n",
    "                        elif data[k][29] == 'M':\n",
    "                            rateAff[13][ji] = rateAff[13][ji] + 1\n",
    "                        \n",
    "                        \n",
    "                    if data[k][28] == 'R' or data[k][28] == 'V' or data[k][28] == 'D' or data[k][28] == 'M' or data[k][28] == 'De/Di':\n",
    "                        rateAff[2][ji] =  rateAff[2][ji] + 1\n",
    "                        rateAff[4][ji] = rateAff[4][ji] + 1\n",
    "                        \n",
    "                        if (data[k][35] == 'P'):\n",
    "                            rateAff[5][ji] = rateAff[5][ji] + 1\n",
    "                        if (data[k][35] == 'C'):\n",
    "                            rateAff[6][ji] = rateAff[6][ji] + 1\n",
    "                        \n",
    "                        if data[k][29] == 'P':\n",
    "                            rateAff[8][ji] = rateAff[8][ji] + 1\n",
    "                        elif data[k][29] == 'C':\n",
    "                            rateAff[11][ji] = rateAff[11][ji] + 1\n",
    "                        elif data[k][29] == 'M':\n",
    "                            rateAff[14][ji] = rateAff[14][ji] + 1\n",
    "                            \n",
    "                ji = ji + 1\n",
    "\n",
    "                \n",
    "        if (data[k][13] == 'Both' or data[k][13] == 'Dissenting'):\n",
    "            dissentingjudge2 = data[k][14]\n",
    "            \n",
    "            ji = 1\n",
    "            while ji < numjudges:\n",
    "                if (data[k][14] == Judges[ji]):\n",
    "                    if data[k][28] == 'A':\n",
    "                        rateAff[1][ji] =  rateAff[1][ji] + 1\n",
    "                        rateAff[4][ji] = rateAff[4][ji] + 1\n",
    "                        \n",
    "                        if (data[k][35] == 'P'):\n",
    "                            rateAff[5][ji] = rateAff[5][ji] + 1\n",
    "                        if (data[k][35] == 'C'):\n",
    "                            rateAff[6][ji] = rateAff[6][ji] + 1\n",
    "                        \n",
    "                        if data[k][29] == 'P':\n",
    "                            rateAff[7][ji] = rateAff[7][ji] + 1\n",
    "                        elif data[k][29] == 'C':\n",
    "                            rateAff[10][ji] = rateAff[10][ji] + 1\n",
    "                        elif data[k][29] == 'M':\n",
    "                            rateAff[13][ji] = rateAff[13][ji] + 1\n",
    "                            \n",
    "                    if data[k][28] == 'R' or data[k][28] == 'V' or data[k][28] == 'D' or data[k][28] == 'M' or data[k][28] == 'De/Di':\n",
    "                        rateAff[2][ji] =  rateAff[2][ji] + 1\n",
    "                        rateAff[4][ji] = rateAff[4][ji] + 1\n",
    "                        \n",
    "                        if (data[k][35] == 'P'):\n",
    "                            rateAff[5][ji] = rateAff[5][ji] + 1\n",
    "                        if (data[k][35] == 'C'):\n",
    "                            rateAff[6][ji] = rateAff[6][ji] + 1\n",
    "                        \n",
    "                        if data[k][29] == 'P':\n",
    "                            rateAff[8][ji] = rateAff[8][ji] + 1\n",
    "                        elif data[k][29] == 'C':\n",
    "                            rateAff[11][ji] = rateAff[11][ji] + 1\n",
    "                        elif data[k][29] == 'M':\n",
    "                            rateAff[14][ji] = rateAff[14][ji] + 1\n",
    "                            \n",
    "                ji = ji + 1\n",
    "        \n",
    "        \n",
    "        \n",
    "        #now do the rest of the judges but don't re-code the dissenters!\n",
    "        ji = 1\n",
    "        while ji < numjudges:\n",
    "            if ((data[k][7] == Judges[ji] and data[k][7] != dissentingjudge1 and data[k][7] != dissentingjudge2) or (data[k][8] == Judges[ji] and data[k][8] != dissentingjudge1 and data[k][8] != dissentingjudge2) or (data[k][6] == Judges[ji] and data[k][6] != dissentingjudge1 and data[k][6] != dissentingjudge2)):\n",
    "                if data[k][18] == 'A':\n",
    "                    rateAff[1][ji] =  rateAff[1][ji] + 1\n",
    "                    \n",
    "                    if data[k][19] == 'P':\n",
    "                        rateAff[7][ji] = rateAff[7][ji] + 1\n",
    "                    elif data[k][19] == 'C':\n",
    "                        rateAff[10][ji] = rateAff[10][ji] + 1\n",
    "                    elif data[k][19] == 'M':\n",
    "                        rateAff[13][ji] = rateAff[13][ji] + 1\n",
    "                    \n",
    "                if data[k][18] == 'R' or data[k][18] == 'V' or data[k][18] == 'D' or data[k][18] == 'M' or data[k][18] == 'De/Di':\n",
    "                    rateAff[2][ji] =  rateAff[2][ji] + 1\n",
    "                    \n",
    "                    if data[k][19] == 'P':\n",
    "                        rateAff[8][ji] = rateAff[8][ji] + 1\n",
    "                    elif data[k][19] == 'C':\n",
    "                        rateAff[11][ji] = rateAff[11][ji] + 1\n",
    "                    elif data[k][19] == 'M':\n",
    "                        rateAff[14][ji] = rateAff[14][ji] + 1\n",
    "            ji = ji + 1\n",
    "        \n",
    "    \n",
    "    else: #no dissent\n",
    "        ji = 1\n",
    "        while ji < numjudges:\n",
    "            if ((data[k][7] == Judges[ji]) or (data[k][8] == Judges[ji]) or (data[k][6] == Judges[ji])):\n",
    "                if data[k][18] == 'A':\n",
    "                    rateAff[1][ji] =  rateAff[1][ji] + 1\n",
    "                    \n",
    "                    if data[k][19] == 'P':\n",
    "                        rateAff[7][ji] = rateAff[7][ji] + 1\n",
    "                    elif data[k][19] == 'C':\n",
    "                        rateAff[10][ji] = rateAff[10][ji] + 1\n",
    "                    elif data[k][19] == 'M':\n",
    "                        rateAff[13][ji] = rateAff[13][ji] + 1\n",
    "                        \n",
    "                if data[k][18] == 'R' or data[k][18] == 'V' or data[k][18] == 'D' or data[k][18] == 'M' or data[k][18] == 'De/Di':\n",
    "                    rateAff[2][ji] =  rateAff[2][ji] + 1\n",
    "                    \n",
    "                    if data[k][19] == 'P':\n",
    "                        rateAff[8][ji] = rateAff[8][ji] + 1\n",
    "                    elif data[k][19] == 'C':\n",
    "                        rateAff[11][ji] = rateAff[11][ji] + 1\n",
    "                    elif data[k][19] == 'M':\n",
    "                        rateAff[14][ji] = rateAff[14][ji] + 1\n",
    "                        \n",
    "            ji = ji + 1\n",
    "\n",
    "            \n",
    "            \n",
    "    #now update total\n",
    "    if data[k][18] == 'A':\n",
    "        rateAff[1][len(Judges) - 1] =  rateAff[1][len(Judges) - 1] + 1\n",
    "    elif data[k][18] == 'R' or data[k][18] == 'V' or data[k][18] == 'D' or data[k][18] == 'M' or data[k][18] == 'De/Di':\n",
    "        rateAff[2][len(Judges) - 1] =  rateAff[2][len(Judges) - 1] + 1\n",
    "    #else:\n",
    "        #print(data[k][18]+' error')\n",
    "    \n",
    "    k = k + 1\n",
    "    \n",
    "k = 1\n",
    "while k < numjudges + 1:\n",
    "    rateAff[3][k] = rateAff[1][k]/(rateAff[1][k]+rateAff[2][k])\n",
    "    if (rateAff[7][k]+rateAff[8][k]) != 0:\n",
    "        rateAff[9][k] = rateAff[7][k]/(rateAff[7][k]+rateAff[8][k])\n",
    "    if (rateAff[10][k]+rateAff[11][k]) != 0:\n",
    "        rateAff[12][k] = rateAff[10][k]/(rateAff[10][k]+rateAff[11][k])\n",
    "    if (rateAff[13][k]+rateAff[14][k]) != 0:\n",
    "        rateAff[15][k] = rateAff[13][k]/(rateAff[13][k]+rateAff[14][k])\n",
    "    k = k + 1\n",
    "\n",
    "print(rateAff)\n",
    "\n",
    "df = pd.DataFrame(rateAff).T\n",
    "df.to_excel(excel_writer = \"C://Users//jasonreinecke//Desktop//Patents Paper Topics//Judicial Cooperation//PCMaffirmancedatadissentstakenintoaccount.xlsx\")\n",
    "\n",
    "            \n",
    "            \n",
    "            \n",
    "            \n",
    "            \n",
    "            \n",
    "            "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[['', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Total'], ['Pro P Prec', 15, 0, 16, 6, 15, 23, 22, 8, 0, 25, 1, 24, 16, 0, 3, 0, 4, 17, 14, 17, 13, 8, 83], ['Pro C Prec', 41, 0, 49, 11, 38, 82, 62, 27, 4, 58, 11, 52, 57, 3, 13, 1, 13, 47, 28, 61, 43, 8, 237], ['Pro M Prec', 2, 0, 5, 3, 2, 9, 3, 4, 0, 3, 0, 4, 3, 0, 0, 0, 2, 4, 1, 3, 1, 2, 17], ['% P Prec', 0.25862068965517243, 0, 0.22857142857142856, 0.3, 0.2727272727272727, 0.20175438596491227, 0.25287356321839083, 0.20512820512820512, 0.0, 0.29069767441860467, 0.08333333333333333, 0.3, 0.21052631578947367, 0.0, 0.1875, 0.0, 0.21052631578947367, 0.25, 0.32558139534883723, 0.20987654320987653, 0.22807017543859648, 0.4444444444444444, 0.24629080118694363], ['% C Prec', 0.7068965517241379, 0, 0.7, 0.55, 0.6909090909090909, 0.7192982456140351, 0.7126436781609196, 0.6923076923076923, 1.0, 0.6744186046511628, 0.9166666666666666, 0.65, 0.75, 1.0, 0.8125, 1.0, 0.6842105263157895, 0.6911764705882353, 0.6511627906976745, 0.7530864197530864, 0.7543859649122807, 0.4444444444444444, 0.7032640949554896], ['% M Prec', 0.034482758620689655, 0, 0.07142857142857142, 0.15, 0.03636363636363636, 0.07894736842105263, 0.034482758620689655, 0.10256410256410256, 0.0, 0.03488372093023256, 0.0, 0.05, 0.039473684210526314, 0.0, 0.0, 0.0, 0.10526315789473684, 0.058823529411764705, 0.023255813953488372, 0.037037037037037035, 0.017543859649122806, 0.1111111111111111, 0.050445103857566766], ['Pro P Nonprec', 17, 0, 17, 4, 14, 17, 20, 5, 1, 14, 4, 16, 25, 0, 6, 0, 3, 11, 10, 15, 13, 1, 71], ['Pro C Nonprec', 84, 0, 122, 30, 85, 103, 105, 40, 1, 85, 16, 76, 118, 3, 26, 0, 31, 101, 42, 75, 80, 26, 417], ['Pro M Nonprec', 4, 0, 8, 2, 5, 5, 4, 3, 0, 8, 1, 5, 9, 0, 1, 0, 0, 3, 2, 7, 3, 2, 24], ['% P Nonprec', 0.1619047619047619, 0, 0.11564625850340136, 0.1111111111111111, 0.1346153846153846, 0.136, 0.15503875968992248, 0.10416666666666667, 0.5, 0.1308411214953271, 0.19047619047619047, 0.16494845360824742, 0.16447368421052633, 0.0, 0.18181818181818182, 0, 0.08823529411764706, 0.09565217391304348, 0.18518518518518517, 0.15463917525773196, 0.13541666666666666, 0.034482758620689655, 0.138671875], ['% C Nonprec', 0.8, 0, 0.8299319727891157, 0.8333333333333334, 0.8173076923076923, 0.824, 0.813953488372093, 0.8333333333333334, 0.5, 0.794392523364486, 0.7619047619047619, 0.7835051546391752, 0.7763157894736842, 1.0, 0.7878787878787878, 0, 0.9117647058823529, 0.8782608695652174, 0.7777777777777778, 0.7731958762886598, 0.8333333333333334, 0.896551724137931, 0.814453125], ['% M Nonprec', 0.0380952380952381, 0, 0.05442176870748299, 0.05555555555555555, 0.04807692307692308, 0.04, 0.031007751937984496, 0.0625, 0.0, 0.07476635514018691, 0.047619047619047616, 0.05154639175257732, 0.05921052631578947, 0.0, 0.030303030303030304, 0, 0.0, 0.02608695652173913, 0.037037037037037035, 0.07216494845360824, 0.03125, 0.06896551724137931, 0.046875], ['Pro P R36', 25, 0, 31, 9, 41, 26, 40, 5, 1, 43, 8, 27, 25, 0, 11, 0, 11, 36, 26, 44, 34, 10, 151], ['Pro C R36', 145, 2, 164, 51, 160, 184, 242, 73, 6, 205, 38, 172, 190, 0, 68, 3, 48, 198, 186, 206, 217, 43, 867], ['Pro M R36', 11, 0, 15, 4, 17, 14, 21, 3, 0, 15, 2, 14, 14, 0, 2, 0, 5, 18, 12, 21, 17, 4, 70], ['% P R36', 0.13812154696132597, 0.0, 0.14761904761904762, 0.140625, 0.18807339449541285, 0.11607142857142858, 0.132013201320132, 0.06172839506172839, 0.14285714285714285, 0.1634980988593156, 0.16666666666666666, 0.1267605633802817, 0.1091703056768559, 0, 0.13580246913580246, 0.0, 0.171875, 0.14285714285714285, 0.11607142857142858, 0.16236162361623616, 0.12686567164179105, 0.17543859649122806, 0.13878676470588236], ['% C R36', 0.8011049723756906, 1.0, 0.780952380952381, 0.796875, 0.7339449541284404, 0.8214285714285714, 0.7986798679867987, 0.9012345679012346, 0.8571428571428571, 0.779467680608365, 0.7916666666666666, 0.8075117370892019, 0.8296943231441049, 0, 0.8395061728395061, 1.0, 0.75, 0.7857142857142857, 0.8303571428571429, 0.7601476014760148, 0.8097014925373134, 0.7543859649122807, 0.796875], ['% M R36', 0.06077348066298342, 0.0, 0.07142857142857142, 0.0625, 0.0779816513761468, 0.0625, 0.06930693069306931, 0.037037037037037035, 0.0, 0.057034220532319393, 0.041666666666666664, 0.06572769953051644, 0.0611353711790393, 0, 0.024691358024691357, 0.0, 0.078125, 0.07142857142857142, 0.05357142857142857, 0.07749077490774908, 0.06343283582089553, 0.07017543859649122, 0.06433823529411764], ['Given P_win, P(prec)', 0.2631578947368421, 0, 0.25, 0.3157894736842105, 0.21428571428571427, 0.3484848484848485, 0.2682926829268293, 0.4444444444444444, 0.0, 0.3048780487804878, 0.07692307692307693, 0.3582089552238806, 0.24242424242424243, 0, 0.15, 0, 0.2222222222222222, 0.265625, 0.28, 0.2236842105263158, 0.21666666666666667, 0.42105263157894735, 0.2721311475409836], ['Given C_win, P(prec)', 0.15185185185185185, 0.0, 0.14626865671641792, 0.11956521739130435, 0.13427561837455831, 0.2222222222222222, 0.15158924205378974, 0.19285714285714287, 0.36363636363636365, 0.16666666666666666, 0.16923076923076924, 0.17333333333333334, 0.15616438356164383, 0.5, 0.12149532710280374, 0.25, 0.14130434782608695, 0.13583815028901733, 0.109375, 0.1783625730994152, 0.1264705882352941, 0.1038961038961039, 0.15581854043392504], ['Given P_win, P(R36)', 0.43859649122807015, 0, 0.484375, 0.47368421052631576, 0.5857142857142857, 0.3939393939393939, 0.4878048780487805, 0.2777777777777778, 0.5, 0.524390243902439, 0.6153846153846154, 0.40298507462686567, 0.3787878787878788, 0, 0.55, 0, 0.6111111111111112, 0.5625, 0.52, 0.5789473684210527, 0.5666666666666667, 0.5263157894736842, 0.49508196721311476], ['Given C_win, P(R36)', 0.5370370370370371, 1.0, 0.48955223880597015, 0.5543478260869565, 0.5653710247349824, 0.4986449864498645, 0.5916870415647921, 0.5214285714285715, 0.5454545454545454, 0.5890804597701149, 0.5846153846153846, 0.5733333333333334, 0.5205479452054794, 0.0, 0.6355140186915887, 0.75, 0.5217391304347826, 0.5722543352601156, 0.7265625, 0.6023391812865497, 0.638235294117647, 0.5584415584415584, 0.5700197238658777], ['Given P_win, P(nonprec)', 0.2982456140350877, 0, 0.265625, 0.21052631578947367, 0.2, 0.25757575757575757, 0.24390243902439024, 0.2777777777777778, 0.5, 0.17073170731707318, 0.3076923076923077, 0.23880597014925373, 0.3787878787878788, 0, 0.3, 0, 0.16666666666666666, 0.171875, 0.2, 0.19736842105263158, 0.21666666666666667, 0.05263157894736842, 0.23278688524590163], ['Given C_win, P(nonprec)', 0.3111111111111111, 0.0, 0.3641791044776119, 0.32608695652173914, 0.3003533568904594, 0.2791327913279133, 0.2567237163814181, 0.2857142857142857, 0.09090909090909091, 0.2442528735632184, 0.24615384615384617, 0.25333333333333335, 0.3232876712328767, 0.5, 0.24299065420560748, 0.0, 0.33695652173913043, 0.29190751445086704, 0.1640625, 0.21929824561403508, 0.23529411764705882, 0.33766233766233766, 0.27416173570019725]]\n"
     ]
    }
   ],
   "source": [
    "#by judge, ascertain how often Pro P Pro C M, by precedential status of opinion, accounting for dissents\n",
    "#use instance 19\n",
    "\n",
    "\n",
    "Judges = ['', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Total']\n",
    "rows, cols = 25, len(Judges)\n",
    "PCM = [[0 for i in range(cols)] for j in range(rows)]\n",
    "PCM[0] = Judges\n",
    "PCM[1][0] = 'Pro P Prec'\n",
    "PCM[2][0] = 'Pro C Prec'\n",
    "PCM[3][0] = 'Pro M Prec'\n",
    "PCM[4][0] = '% P Prec'\n",
    "PCM[5][0] = '% C Prec'\n",
    "PCM[6][0] = '% M Prec'\n",
    "PCM[7][0] = 'Pro P Nonprec'\n",
    "PCM[8][0] = 'Pro C Nonprec'\n",
    "PCM[9][0] = 'Pro M Nonprec'\n",
    "PCM[10][0] = '% P Nonprec'\n",
    "PCM[11][0] = '% C Nonprec'\n",
    "PCM[12][0] = '% M Nonprec'\n",
    "PCM[13][0] = 'Pro P R36'\n",
    "PCM[14][0] = 'Pro C R36'\n",
    "PCM[15][0] = 'Pro M R36'\n",
    "PCM[16][0] = '% P R36'\n",
    "PCM[17][0] = '% C R36'\n",
    "PCM[18][0] = '% M R36'\n",
    "PCM[19][0] = 'Given P_win, P(prec)'\n",
    "PCM[20][0] = 'Given C_win, P(prec)'\n",
    "PCM[21][0] = 'Given P_win, P(R36)'\n",
    "PCM[22][0] = 'Given C_win, P(R36)'\n",
    "PCM[23][0] = 'Given P_win, P(nonprec)'\n",
    "PCM[24][0] = 'Given C_win, P(nonprec)'\n",
    "instance = 19 #use 21 for fees and sanctions excluded, 19 for included\n",
    "dissentinstance = 29\n",
    "\n",
    "k = 0\n",
    "numjudges = len(Judges) - 1 #b/c it's offset now\n",
    "while k < len(data):\n",
    "    \n",
    "    zz = 1\n",
    "    if (data[k][instance] == 'P' or  data[k][instance] == 'C' or  data[k][instance] == 'M') and (data[k][18] == 'A') and (data[k][11] != 'Dissenting' and data[k][11] != 'Both' and data[k][13] != 'Dissenting' and data[k][13] != 'Both'): # and ( (int(data[k][0].strftime('%Y')) > 2015) or (int(data[k][0].strftime('%Y')) == 2015 and int(data[k][0].strftime('%m')) > 6) ): #data[k][18] != 'A': #can do zz == 1: throwaway, or data[k][1] != 'PTO':\n",
    "        if data[k][3] == 'Precedential':\n",
    "            ji = 1\n",
    "            while ji < numjudges:\n",
    "                if ((data[k][7] == Judges[ji]) or (data[k][8] == Judges[ji]) or (data[k][6] == Judges[ji])):\n",
    "                    if (data[k][12] == Judges[ji] and (data[k][11] == 'Dissenting' or data[k][11] == 'Both')) or (data[k][14] == Judges[ji] and (data[k][13] == 'Dissenting' or data[k][13] == 'Both')):\n",
    "                        if data[k][dissentinstance] == 'P':\n",
    "                            PCM[1][ji] = PCM[1][ji] + 1\n",
    "                        if data[k][dissentinstance] == 'C':\n",
    "                            PCM[2][ji] = PCM[2][ji] + 1\n",
    "                        if data[k][dissentinstance] == 'M':\n",
    "                            PCM[3][ji] = PCM[3][ji] + 1\n",
    "                    else:\n",
    "                        \n",
    "                        if data[k][instance] == 'P':\n",
    "                            PCM[1][ji] = PCM[1][ji] + 1\n",
    "                        if data[k][instance] == 'C':\n",
    "                            PCM[2][ji] = PCM[2][ji] + 1\n",
    "                        if data[k][instance] == 'M':\n",
    "                            PCM[3][ji] = PCM[3][ji] + 1\n",
    "                ji = ji + 1\n",
    "\n",
    "            #update total one time\n",
    "            if data[k][instance] == 'P':\n",
    "                PCM[1][len(PCM[0])-1] = PCM[1][len(PCM[0])-1] + 1\n",
    "            if data[k][instance] == 'C':\n",
    "                PCM[2][len(PCM[0])-1] = PCM[2][len(PCM[0])-1] + 1\n",
    "            if data[k][instance] == 'M':\n",
    "                PCM[3][len(PCM[0])-1] = PCM[3][len(PCM[0])-1] + 1\n",
    "\n",
    "        elif data[k][5] == 'Opinion':\n",
    "            ji = 1\n",
    "            while ji < numjudges:\n",
    "                if ((data[k][7] == Judges[ji]) or (data[k][8] == Judges[ji]) or (data[k][6] == Judges[ji])):\n",
    "                    if (data[k][12] == Judges[ji] and (data[k][11] == 'Dissenting' or data[k][11] == 'Both')) or (data[k][14] == Judges[ji] and (data[k][13] == 'Dissenting' or data[k][13] == 'Both')):\n",
    "                        if data[k][dissentinstance] == 'P':\n",
    "                            PCM[1][ji] = PCM[1][ji] + 1\n",
    "                        if data[k][dissentinstance] == 'C':\n",
    "                            PCM[2][ji] = PCM[2][ji] + 1\n",
    "                        if data[k][dissentinstance] == 'M':\n",
    "                            PCM[3][ji] = PCM[3][ji] + 1\n",
    "                    else:\n",
    "                        if data[k][instance] == 'P':\n",
    "                            PCM[7][ji] = PCM[7][ji] + 1\n",
    "                        if data[k][instance] == 'C':\n",
    "                            PCM[8][ji] = PCM[8][ji] + 1\n",
    "                        if data[k][instance] == 'M':\n",
    "                            PCM[9][ji] = PCM[9][ji] + 1\n",
    "                ji = ji + 1\n",
    "\n",
    "            #update total one time\n",
    "            if data[k][instance] == 'P':\n",
    "                PCM[7][len(PCM[0])-1] = PCM[7][len(PCM[0])-1] + 1\n",
    "            if data[k][instance] == 'C':\n",
    "                PCM[8][len(PCM[0])-1] = PCM[8][len(PCM[0])-1] + 1\n",
    "            if data[k][instance] == 'M':\n",
    "                PCM[9][len(PCM[0])-1] = PCM[9][len(PCM[0])-1] + 1\n",
    "\n",
    "        else:\n",
    "            ji = 1\n",
    "            while ji < numjudges:\n",
    "                if ((data[k][7] == Judges[ji]) or (data[k][8] == Judges[ji]) or (data[k][6] == Judges[ji])):\n",
    "                    if data[k][instance] == 'P':\n",
    "                        PCM[13][ji] = PCM[13][ji] + 1\n",
    "                    if data[k][instance] == 'C':\n",
    "                        PCM[14][ji] = PCM[14][ji] + 1\n",
    "                    if data[k][instance] == 'M':\n",
    "                        PCM[15][ji] = PCM[15][ji] + 1\n",
    "                ji = ji + 1\n",
    "\n",
    "            #update total one time\n",
    "            if data[k][instance] == 'P':\n",
    "                PCM[13][len(PCM[0])-1] = PCM[13][len(PCM[0])-1] + 1\n",
    "            if data[k][instance] == 'C':\n",
    "                PCM[14][len(PCM[0])-1] = PCM[14][len(PCM[0])-1] + 1\n",
    "            if data[k][instance] == 'M':\n",
    "                PCM[15][len(PCM[0])-1] = PCM[15][len(PCM[0])-1] + 1\n",
    "    \n",
    "    \n",
    "    \n",
    "    k = k + 1\n",
    "    \n",
    "k = 1\n",
    "while k < numjudges+1:\n",
    "        \n",
    "    if (PCM[1][k]+PCM[2][k]+PCM[3][k]) != 0:\n",
    "        PCM[4][k] = PCM[1][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "        PCM[5][k] = PCM[2][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "        PCM[6][k] = PCM[3][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "\n",
    "    if (PCM[7][k]+PCM[8][k]+PCM[9][k]) != 0:\n",
    "        PCM[10][k] = PCM[7][k]/(PCM[7][k]+PCM[8][k]+PCM[9][k])\n",
    "        PCM[11][k] = PCM[8][k]/(PCM[7][k]+PCM[8][k]+PCM[9][k])\n",
    "        PCM[12][k] = PCM[9][k]/(PCM[7][k]+PCM[8][k]+PCM[9][k])\n",
    "\n",
    "    if (PCM[13][k]+PCM[14][k]+PCM[15][k]) != 0:\n",
    "        PCM[16][k] = PCM[13][k]/(PCM[13][k]+PCM[14][k]+PCM[15][k])\n",
    "        PCM[17][k] = PCM[14][k]/(PCM[13][k]+PCM[14][k]+PCM[15][k])\n",
    "        PCM[18][k] = PCM[15][k]/(PCM[13][k]+PCM[14][k]+PCM[15][k])\n",
    "\n",
    "    if (PCM[1][k]+PCM[7][k]+PCM[13][k]) != 0:\n",
    "        PCM[19][k] = PCM[1][k]/(PCM[1][k]+PCM[7][k]+PCM[13][k])\n",
    "        PCM[21][k] = PCM[13][k]/(PCM[1][k]+PCM[7][k]+PCM[13][k])\n",
    "        PCM[23][k] = PCM[7][k]/(PCM[1][k]+PCM[7][k]+PCM[13][k])\n",
    "        \n",
    "    if (PCM[2][k]+PCM[8][k]+PCM[14][k]) != 0:\n",
    "        PCM[20][k] = PCM[2][k]/(PCM[2][k]+PCM[8][k]+PCM[14][k])\n",
    "        PCM[22][k] = PCM[14][k]/(PCM[2][k]+PCM[8][k]+PCM[14][k])\n",
    "        PCM[24][k] = PCM[8][k]/(PCM[2][k]+PCM[8][k]+PCM[14][k])\n",
    "    \n",
    "    \n",
    "    k = k + 1\n",
    "\n",
    "print(PCM)\n",
    "\n",
    "df = pd.DataFrame(PCM).T\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//PCM all by prec status unanimous affirmances dissents included\"+str(instance)+ \".xlsx\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "#this is the code for determining PCM for everything, dissents accounted for.\n",
    "\n",
    "import random \n",
    "#two spots to change\n",
    "insert = 'all'\n",
    "\n",
    "numsimulations = 1 #this is the number of simulations to run\n",
    "numdatasamples = 2708 #no need to change unless there's an increase\n",
    "\n",
    "rows = 8\n",
    "cols = numdatasamples\n",
    "# outcomes [which panel instance][which panel member]\n",
    "outcomes = [['' for i in range(rows)] for j in range(cols)]\n",
    "\n",
    "#PCM_all [which simulation are you in][which column (PCM %) are you in, starts at 1][which row (Judge), 1 start]\n",
    "columns = ['','P_all', 'C_all', 'M_all', '% P_all', '% C_all', '% M_all', 'P_obv', 'C_obv', 'M_obv', '% P_obv', '% C_obv', '% M_obv', 'P_psm', 'C_psm', 'M_psm','% P_psm', '% C_psm', '% M_psm', 'P_val', 'C_val', 'M_val', '% P_val', '% C_val', '% M_val']\n",
    "Judges = ['', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Total']\n",
    "rows, cols, depth = len(columns), len(Judges), numsimulations # number columns in excel doc, number rows in excel doc, which sim\n",
    "PCM_all = [[[0 for i in range(cols)] for j in range(rows)] for k in range(depth)]\n",
    "\n",
    "numjudges = len(Judges) - 1\n",
    "\n",
    "#setup headers of PCM_all\n",
    "i = 0\n",
    "while i < numsimulations:\n",
    "    j = 0\n",
    "    while j < len(columns):\n",
    "        PCM_all[i][j][0] = columns[j]\n",
    "        j = j + 1\n",
    "    j = 0\n",
    "    while j < len(Judges):\n",
    "        PCM_all[i][0][j] = Judges[j]\n",
    "        j = j + 1\n",
    "    i = i + 1\n",
    "#end setup headers of PCM_all\n",
    "\n",
    "\n",
    "\n",
    "#first need to get the entire list of outcomes\n",
    "i = 0\n",
    "j = 0\n",
    "while i < len(data):\n",
    "    if ((data[i][19] == 'P' or data[i][19] == 'C' or data[i][19] == 'M')): # and ((int(data[i][0].strftime('%Y')) < 2015) or (int(data[i][0].strftime('%Y')) == 2015 and int(data[i][0].strftime('%m')) < 7))): #and data[i][5] == 'Rule 36'): #and data[i][22] == 'P' and data[i][1] == 'PTO': #only want to tally for cases that we're actually looking at\n",
    "        outcomes[j][0] = data[i][19]\n",
    "        outcomes[j][1] = data[i][24]\n",
    "        outcomes[j][2] = data[i][25]\n",
    "        outcomes[j][3] = data[i][26]\n",
    "        outcomes[j][4] = data[i][29]\n",
    "        outcomes[j][5] = data[i][31]\n",
    "        outcomes[j][6] = data[i][32]\n",
    "        outcomes[j][7] = data[i][33]\n",
    "        j = j + 1\n",
    "    i = i + 1\n",
    "#end getting list of panels\n",
    "\n",
    "\n",
    "\n",
    "#then do each simulation\n",
    "q = 0\n",
    "while q < numsimulations: #each simulation desired\n",
    "    \n",
    "    ### begin getting a set of simulated outcomes, i.e., just need to shuffle them\n",
    "    #random.shuffle(outcomes) \n",
    "    ### end getting a set of simulated outcomes\n",
    "    \n",
    "    #now calculate everything using the new outcomes\n",
    "    k = 0\n",
    "    j = -1 #use this to keep my place in the actual data\n",
    "    while k < len(data): #must go through each row in data\n",
    "        \n",
    "        if ((data[k][19] == 'P' or data[k][19] == 'C' or data[k][19] == 'M')): # and ((int(data[k][0].strftime('%Y')) < 2015) or (int(data[k][0].strftime('%Y')) == 2015 and int(data[k][0].strftime('%m')) < 7))): #and data[k][5] == 'Rule 36'): #and data[k][22] == 'P' and data[k][1] == 'PTO': #only want to tally for cases that we're actually looking at\n",
    "            j = j + 1\n",
    "             \n",
    "            #do it based on whether there is a dissenter\n",
    "            if (data[k][17] == 'Yes'): #means there's a dissent to account for\n",
    "\n",
    "                dissentingjudge1 = ''\n",
    "                dissentingjudge2 = ''\n",
    "                #identify dissenting judge(s)\n",
    "                if (data[k][11] == 'Both' or data[k][11] == 'Dissenting'):\n",
    "                    \n",
    "                    if (data[k][29] == 'P' or data[k][29] == 'C' or data[k][29] == 'M'): #make sure it's a dissent we care about\n",
    "                        dissentingjudge1 = data[k][12] \n",
    "                        \n",
    "                        ji = 1\n",
    "                        while ji < numjudges:\n",
    "                            if data[k][12] == Judges[ji]:\n",
    "                                #start with general ruling\n",
    "                                if outcomes[j][4] == 'P':\n",
    "                                    PCM_all[q][1][ji] = PCM_all[q][1][ji] + 1\n",
    "                                elif outcomes[j][4] == 'C':\n",
    "                                    PCM_all[q][2][ji] = PCM_all[q][2][ji] + 1\n",
    "                                elif outcomes[j][4] == 'M':\n",
    "                                    PCM_all[q][3][ji] = PCM_all[q][3][ji] + 1\n",
    "\n",
    "                                #now do obviousness ruling\n",
    "                                if outcomes[j][5] == 'P':\n",
    "                                    PCM_all[q][7][ji] = PCM_all[q][7][ji] + 1\n",
    "                                elif outcomes[j][5] == 'C':\n",
    "                                    PCM_all[q][8][ji] = PCM_all[q][8][ji] + 1\n",
    "                                elif outcomes[j][5] == 'M':\n",
    "                                    PCM_all[q][9][ji] = PCM_all[q][9][ji] + 1\n",
    "\n",
    "                                #now do psm ruling\n",
    "                                if outcomes[j][6] == 'P':\n",
    "                                    PCM_all[q][13][ji] = PCM_all[q][13][ji] + 1\n",
    "                                elif outcomes[j][6] == 'C':\n",
    "                                    PCM_all[q][14][ji] = PCM_all[q][14][ji] + 1\n",
    "                                elif outcomes[j][6] == 'M':\n",
    "                                    PCM_all[q][15][ji] = PCM_all[q][15][ji] + 1\n",
    "\n",
    "                                #now do val ruling\n",
    "                                if (outcomes[j][5] == 'M' or outcomes[j][6] == 'M' or outcomes[j][7] == 'M'):\n",
    "                                    PCM_all[q][21][ji] = PCM_all[q][21][ji] + 1\n",
    "                                elif ((outcomes[j][5] == 'P' or outcomes[j][6] == 'P' or outcomes[j][7] == 'P') and (outcomes[j][5] == 'C' or outcomes[j][6] == 'C' or outcomes[j][7] == 'C')):\n",
    "                                    PCM_all[q][21][ji] = PCM_all[q][21][ji] + 1\n",
    "                                elif (outcomes[j][5] == 'P' or outcomes[j][6] == 'P' or outcomes[j][7] == 'P'):\n",
    "                                    PCM_all[q][19][ji] = PCM_all[q][19][ji] + 1\n",
    "                                elif (outcomes[j][5] == 'C' or outcomes[j][6] == 'C' or outcomes[j][7] == 'C'):\n",
    "                                    PCM_all[q][20][ji] = PCM_all[q][20][ji] + 1\n",
    "                        \n",
    "                            ji = ji + 1\n",
    "\n",
    "                if (data[k][13] == 'Both' or data[k][13] == 'Dissenting'):\n",
    "\n",
    "                    if (data[k][29] == 'P' or data[k][29] == 'C' or data[k][29] == 'M'): #make sure it's a dissent we care about\n",
    "                        dissentingjudge2 = data[k][14]\n",
    "                        \n",
    "                        ji = 1\n",
    "                        while ji < numjudges:\n",
    "                            if data[k][14] == Judges[ji]:\n",
    "                                #start with general ruling\n",
    "                                if outcomes[j][4] == 'P':\n",
    "                                    PCM_all[q][1][ji] = PCM_all[q][1][ji] + 1\n",
    "                                elif outcomes[j][4] == 'C':\n",
    "                                    PCM_all[q][2][ji] = PCM_all[q][2][ji] + 1\n",
    "                                elif outcomes[j][4] == 'M':\n",
    "                                    PCM_all[q][3][ji] = PCM_all[q][3][ji] + 1\n",
    "\n",
    "                                #now do obviousness ruling\n",
    "                                if outcomes[j][5] == 'P':\n",
    "                                    PCM_all[q][7][ji] = PCM_all[q][7][ji] + 1\n",
    "                                elif outcomes[j][5] == 'C':\n",
    "                                    PCM_all[q][8][ji] = PCM_all[q][8][ji] + 1\n",
    "                                elif outcomes[j][5] == 'M':\n",
    "                                    PCM_all[q][9][ji] = PCM_all[q][9][ji] + 1\n",
    "\n",
    "                                #now do psm ruling\n",
    "                                if outcomes[j][6] == 'P':\n",
    "                                    PCM_all[q][13][ji] = PCM_all[q][13][ji] + 1\n",
    "                                elif outcomes[j][6] == 'C':\n",
    "                                    PCM_all[q][14][ji] = PCM_all[q][14][ji] + 1\n",
    "                                elif outcomes[j][6] == 'M':\n",
    "                                    PCM_all[q][15][ji] = PCM_all[q][15][ji] + 1\n",
    "\n",
    "                                #now do val ruling\n",
    "                                if (outcomes[j][5] == 'M' or outcomes[j][6] == 'M' or outcomes[j][7] == 'M'):\n",
    "                                    PCM_all[q][21][ji] = PCM_all[q][21][ji] + 1\n",
    "                                elif ((outcomes[j][5] == 'P' or outcomes[j][6] == 'P' or outcomes[j][7] == 'P') and (outcomes[j][5] == 'C' or outcomes[j][6] == 'C' or outcomes[j][7] == 'C')):\n",
    "                                    PCM_all[q][21][ji] = PCM_all[q][21][ji] + 1\n",
    "                                elif (outcomes[j][5] == 'P' or outcomes[j][6] == 'P' or outcomes[j][7] == 'P'):\n",
    "                                    PCM_all[q][19][ji] = PCM_all[q][19][ji] + 1\n",
    "                                elif (outcomes[j][5] == 'C' or outcomes[j][6] == 'C' or outcomes[j][7] == 'C'):\n",
    "                                    PCM_all[q][20][ji] = PCM_all[q][20][ji] + 1\n",
    "                        \n",
    "                            ji = ji + 1\n",
    "\n",
    "                #now do the rest of the judges but don't re-code the dissenters!\n",
    "                ji = 1\n",
    "                while ji < numjudges:\n",
    "                    if ((data[k][7] == Judges[ji] and data[k][7] != dissentingjudge1 and data[k][7] != dissentingjudge2) or (data[k][8] == Judges[ji] and data[k][8] != dissentingjudge1 and data[k][8] != dissentingjudge2) or (data[k][6] == Judges[ji] and data[k][6] != dissentingjudge1 and data[k][6] != dissentingjudge2)):\n",
    "\n",
    "                        #start with general ruling\n",
    "                        if outcomes[j][0] == 'P':\n",
    "                            PCM_all[q][1][ji] = PCM_all[q][1][ji] + 1\n",
    "                        elif outcomes[j][0] == 'C':\n",
    "                            PCM_all[q][2][ji] = PCM_all[q][2][ji] + 1\n",
    "                        elif outcomes[j][0] == 'M':\n",
    "                            PCM_all[q][3][ji] = PCM_all[q][3][ji] + 1\n",
    "\n",
    "                        #now do obviousness ruling\n",
    "                        if outcomes[j][1] == 'P':\n",
    "                            PCM_all[q][7][ji] = PCM_all[q][7][ji] + 1\n",
    "                        elif outcomes[j][1] == 'C':\n",
    "                            PCM_all[q][8][ji] = PCM_all[q][8][ji] + 1\n",
    "                        elif outcomes[j][1] == 'M':\n",
    "                            PCM_all[q][9][ji] = PCM_all[q][9][ji] + 1\n",
    "\n",
    "                        #now do psm ruling\n",
    "                        if outcomes[j][2] == 'P':\n",
    "                            PCM_all[q][13][ji] = PCM_all[q][13][ji] + 1\n",
    "                        elif outcomes[j][2] == 'C':\n",
    "                            PCM_all[q][14][ji] = PCM_all[q][14][ji] + 1\n",
    "                        elif outcomes[j][2] == 'M':\n",
    "                            PCM_all[q][15][ji] = PCM_all[q][15][ji] + 1\n",
    "\n",
    "                        #now do val ruling\n",
    "                        if (outcomes[j][1] == 'M' or outcomes[j][2] == 'M' or outcomes[j][3] == 'M'):\n",
    "                            PCM_all[q][21][ji] = PCM_all[q][21][ji] + 1\n",
    "                        elif ((outcomes[j][1] == 'P' or outcomes[j][2] == 'P' or outcomes[j][3] == 'P') and (outcomes[j][1] == 'C' or outcomes[j][2] == 'C' or outcomes[j][3] == 'C')):\n",
    "                            PCM_all[q][21][ji] = PCM_all[q][21][ji] + 1\n",
    "                        elif (outcomes[j][1] == 'P' or outcomes[j][2] == 'P' or outcomes[j][3] == 'P'):\n",
    "                            PCM_all[q][19][ji] = PCM_all[q][19][ji] + 1\n",
    "                        elif (outcomes[j][1] == 'C' or outcomes[j][2] == 'C' or outcomes[j][3] == 'C'):\n",
    "                            PCM_all[q][20][ji] = PCM_all[q][20][ji] + 1\n",
    "\n",
    "                    ji = ji + 1\n",
    "\n",
    "\n",
    "            else: #no dissent\n",
    "                ji = 1\n",
    "                while ji < numjudges:\n",
    "\n",
    "                    if ((data[k][7] == Judges[ji]) or (data[k][8] == Judges[ji]) or (data[k][6] == Judges[ji])):\n",
    "\n",
    "                        #start with general ruling\n",
    "                        if outcomes[j][0] == 'P':\n",
    "                            PCM_all[q][1][ji] = PCM_all[q][1][ji] + 1\n",
    "                        elif outcomes[j][0] == 'C':\n",
    "                            PCM_all[q][2][ji] = PCM_all[q][2][ji] + 1\n",
    "                        elif outcomes[j][0] == 'M':\n",
    "                            PCM_all[q][3][ji] = PCM_all[q][3][ji] + 1\n",
    "\n",
    "                        #now do obviousness ruling\n",
    "                        if outcomes[j][1] == 'P':\n",
    "                            PCM_all[q][7][ji] = PCM_all[q][7][ji] + 1\n",
    "                        elif outcomes[j][1] == 'C':\n",
    "                            PCM_all[q][8][ji] = PCM_all[q][8][ji] + 1\n",
    "                        elif outcomes[j][1] == 'M':\n",
    "                            PCM_all[q][9][ji] = PCM_all[q][9][ji] + 1\n",
    "\n",
    "                        #now do psm ruling\n",
    "                        if outcomes[j][2] == 'P':\n",
    "                            PCM_all[q][13][ji] = PCM_all[q][13][ji] + 1\n",
    "                        elif outcomes[j][2] == 'C':\n",
    "                            PCM_all[q][14][ji] = PCM_all[q][14][ji] + 1\n",
    "                        elif outcomes[j][2] == 'M':\n",
    "                            PCM_all[q][15][ji] = PCM_all[q][15][ji] + 1\n",
    "\n",
    "                        #now do val ruling\n",
    "                        if (outcomes[j][1] == 'M' or outcomes[j][2] == 'M' or outcomes[j][3] == 'M'):\n",
    "                            PCM_all[q][21][ji] = PCM_all[q][21][ji] + 1\n",
    "                        elif ((outcomes[j][1] == 'P' or outcomes[j][2] == 'P' or outcomes[j][3] == 'P') and (outcomes[j][1] == 'C' or outcomes[j][2] == 'C' or outcomes[j][3] == 'C')):\n",
    "                            PCM_all[q][21][ji] = PCM_all[q][21][ji] + 1\n",
    "                        elif (outcomes[j][1] == 'P' or outcomes[j][2] == 'P' or outcomes[j][3] == 'P'):\n",
    "                            PCM_all[q][19][ji] = PCM_all[q][19][ji] + 1\n",
    "                        elif (outcomes[j][1] == 'C' or outcomes[j][2] == 'C' or outcomes[j][3] == 'C'):\n",
    "                            PCM_all[q][20][ji] = PCM_all[q][20][ji] + 1\n",
    "\n",
    "\n",
    "                    ji = ji + 1\n",
    "\n",
    "            #now do TOTALS, once per case\n",
    "            ji = len(Judges) - 1\n",
    "            #start with general ruling\n",
    "            if outcomes[j][0] == 'P':\n",
    "                PCM_all[q][1][ji] = PCM_all[q][1][ji] + 1\n",
    "            elif outcomes[j][0] == 'C':\n",
    "                PCM_all[q][2][ji] = PCM_all[q][2][ji] + 1\n",
    "            elif outcomes[j][0] == 'M':\n",
    "                PCM_all[q][3][ji] = PCM_all[q][3][ji] + 1\n",
    "\n",
    "            #now do obviousness ruling\n",
    "            if outcomes[j][1] == 'P':\n",
    "                PCM_all[q][7][ji] = PCM_all[q][7][ji] + 1\n",
    "            elif outcomes[j][1] == 'C':\n",
    "                PCM_all[q][8][ji] = PCM_all[q][8][ji] + 1\n",
    "            elif outcomes[j][1] == 'M':\n",
    "                PCM_all[q][9][ji] = PCM_all[q][9][ji] + 1\n",
    "\n",
    "            #now do psm ruling\n",
    "            if outcomes[j][2] == 'P':\n",
    "                PCM_all[q][13][ji] = PCM_all[q][13][ji] + 1\n",
    "            elif outcomes[j][2] == 'C':\n",
    "                PCM_all[q][14][ji] = PCM_all[q][14][ji] + 1\n",
    "            elif outcomes[j][2] == 'M':\n",
    "                PCM_all[q][15][ji] = PCM_all[q][15][ji] + 1\n",
    "\n",
    "            #now do val ruling\n",
    "            if (outcomes[j][1] == 'M' or outcomes[j][2] == 'M' or outcomes[j][3] == 'M'):\n",
    "                PCM_all[q][21][ji] = PCM_all[q][21][ji] + 1\n",
    "            elif ((outcomes[j][1] == 'P' or outcomes[j][2] == 'P' or outcomes[j][3] == 'P') and (outcomes[j][1] == 'C' or outcomes[j][2] == 'C' or outcomes[j][3] == 'C')):\n",
    "                PCM_all[q][21][ji] = PCM_all[q][21][ji] + 1\n",
    "            elif (outcomes[j][1] == 'P' or outcomes[j][2] == 'P' or outcomes[j][3] == 'P'):\n",
    "                PCM_all[q][19][ji] = PCM_all[q][19][ji] + 1\n",
    "            elif (outcomes[j][1] == 'C' or outcomes[j][2] == 'C' or outcomes[j][3] == 'C'):\n",
    "                PCM_all[q][20][ji] = PCM_all[q][20][ji] + 1\n",
    "    \n",
    "    \n",
    "        \n",
    "        \n",
    "        k = k + 1\n",
    "    \n",
    "    \n",
    "    #once per simulation, calculate the percentages\n",
    "    \n",
    "    k = 1\n",
    "    while k < len(Judges):\n",
    "        \n",
    "        if (PCM_all[q][1][k]+PCM_all[q][2][k]+PCM_all[q][3][k]) != 0:\n",
    "            PCM_all[q][4][k] = PCM_all[q][1][k]/(PCM_all[q][1][k]+PCM_all[q][2][k]+PCM_all[q][3][k])\n",
    "            PCM_all[q][5][k] = PCM_all[q][2][k]/(PCM_all[q][1][k]+PCM_all[q][2][k]+PCM_all[q][3][k])\n",
    "            PCM_all[q][6][k] = PCM_all[q][3][k]/(PCM_all[q][1][k]+PCM_all[q][2][k]+PCM_all[q][3][k])\n",
    "\n",
    "        if (PCM_all[q][7][k]+PCM_all[q][8][k]+PCM_all[q][9][k]) != 0:\n",
    "            PCM_all[q][10][k] = PCM_all[q][7][k]/(PCM_all[q][7][k]+PCM_all[q][8][k]+PCM_all[q][9][k])\n",
    "            PCM_all[q][11][k] = PCM_all[q][8][k]/(PCM_all[q][7][k]+PCM_all[q][8][k]+PCM_all[q][9][k])\n",
    "            PCM_all[q][12][k] = PCM_all[q][9][k]/(PCM_all[q][7][k]+PCM_all[q][8][k]+PCM_all[q][9][k])\n",
    "\n",
    "        if (PCM_all[q][13][k]+PCM_all[q][14][k]+PCM_all[q][15][k]) != 0:\n",
    "            PCM_all[q][16][k] = PCM_all[q][13][k]/(PCM_all[q][13][k]+PCM_all[q][14][k]+PCM_all[q][15][k])\n",
    "            PCM_all[q][17][k] = PCM_all[q][14][k]/(PCM_all[q][13][k]+PCM_all[q][14][k]+PCM_all[q][15][k])\n",
    "            PCM_all[q][18][k] = PCM_all[q][15][k]/(PCM_all[q][13][k]+PCM_all[q][14][k]+PCM_all[q][15][k])\n",
    "\n",
    "        if (PCM_all[q][19][k]+PCM_all[q][20][k]+PCM_all[q][21][k]) != 0:\n",
    "            PCM_all[q][22][k] = PCM_all[q][19][k]/(PCM_all[q][19][k]+PCM_all[q][20][k]+PCM_all[q][21][k])\n",
    "            PCM_all[q][23][k] = PCM_all[q][20][k]/(PCM_all[q][19][k]+PCM_all[q][20][k]+PCM_all[q][21][k])\n",
    "            PCM_all[q][24][k] = PCM_all[q][21][k]/(PCM_all[q][19][k]+PCM_all[q][20][k]+PCM_all[q][21][k])\n",
    "        \n",
    "        k = k + 1\n",
    "    \n",
    "    \n",
    "    q = q + 1\n",
    "\n",
    "\n",
    "    \n",
    "# outcomes [which panel instance][which ruling]\n",
    "#PCM_all [which simulation are you in][which column (PCM %) are you in, starts at 1][which row (Judge), 1 start]\n",
    " \n",
    "\n",
    "df = pd.DataFrame(PCM_all[0]).T\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//PCM_\"+insert+\"_dissentsaccountedfor.xlsx\")\n",
    "\n",
    "\n",
    "PCM_all_actual = PCM_all"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "3\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "4\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "5\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "6\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "7\n",
      "dissent\n",
      "M\n",
      "RR R_dissent\n",
      "8\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "9\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "10\n",
      "dissent\n",
      "M\n",
      "DD R_dissent\n",
      "11\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "12\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "13\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "14\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "15\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "16\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "17\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "18\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "19\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "20\n",
      "dissent\n",
      "C\n",
      "RR D_dissent\n",
      "21\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "22\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "23\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "24\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "25\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "26\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "27\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "28\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "29\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "30\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "31\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "32\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "33\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "34\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "35\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "36\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "37\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "38\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "39\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "40\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "41\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "42\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "43\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "44\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "45\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "46\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "47\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "48\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "49\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "50\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "51\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "52\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "53\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "54\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "55\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "56\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "57\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "58\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "59\n",
      "no dissent\n",
      "60\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "61\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "62\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "63\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "64\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "65\n",
      "no dissent\n",
      "66\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "67\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "68\n",
      "dissent\n",
      "69\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "70\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "71\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "72\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "73\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "74\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "75\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "76\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "77\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "78\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "79\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "80\n",
      "no dissent\n",
      "81\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "82\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "83\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "84\n",
      "dissent\n",
      "P\n",
      "D D_dissent\n",
      "85\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "86\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "87\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "88\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "89\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "90\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "91\n",
      "no dissent\n",
      "M\n",
      "RRR\n",
      "92\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "93\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "94\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "95\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "96\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "97\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "98\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "99\n",
      "dissent\n",
      "100\n",
      "dissent\n",
      "P\n",
      "DD R_dissent\n",
      "101\n",
      "dissent\n",
      "102\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "103\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "104\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "105\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "106\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "107\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "108\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "109\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "110\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "111\n",
      "no dissent\n",
      "112\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "113\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "114\n",
      "no dissent\n",
      "115\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "116\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "117\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "118\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "119\n",
      "no dissent\n",
      "120\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "121\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "122\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "123\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "124\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "125\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "126\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "127\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "128\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "129\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "130\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "131\n",
      "no dissent\n",
      "132\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "133\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "134\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "135\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "136\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "137\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "138\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "139\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "140\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "141\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "142\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "143\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "144\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "145\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "146\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "147\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "148\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "149\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "150\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "151\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "152\n",
      "no dissent\n",
      "153\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "154\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "155\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "156\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "157\n",
      "no dissent\n",
      "158\n",
      "dissent\n",
      "159\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "160\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "161\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "162\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "163\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "164\n",
      "no dissent\n",
      "165\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "166\n",
      "dissent\n",
      "M\n",
      "DD R_dissent\n",
      "167\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "168\n",
      "dissent\n",
      "P\n",
      "DD R_dissent\n",
      "169\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "170\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "171\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "172\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "173\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "174\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "175\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "176\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "177\n",
      "dissent\n",
      "178\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "179\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "180\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "181\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "182\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "183\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "184\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "185\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "186\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "187\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "188\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "189\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "190\n",
      "dissent\n",
      "P\n",
      "D D_dissent\n",
      "191\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "192\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "193\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "194\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "195\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "196\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "197\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "198\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "199\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "200\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "201\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "202\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "203\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "204\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "205\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "206\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "207\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "208\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "209\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "210\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "211\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "212\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "213\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "214\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "215\n",
      "dissent\n",
      "P\n",
      "DDD\n",
      "216\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "217\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "218\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "219\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "220\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "221\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "222\n",
      "no dissent\n",
      "223\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "224\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "225\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "226\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "227\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "228\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "229\n",
      "no dissent\n",
      "230\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "231\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "232\n",
      "dissent\n",
      "C\n",
      "RR R_dissent\n",
      "233\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "234\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "235\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "236\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "237\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "238\n",
      "dissent\n",
      "P\n",
      "RR D_dissent\n",
      "239\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "240\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "241\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "242\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "243\n",
      "no dissent\n",
      "244\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "245\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "246\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "247\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "248\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "249\n",
      "no dissent\n",
      "250\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "251\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "252\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "253\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "254\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "255\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "256\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "257\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "258\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "259\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "260\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "261\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "262\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "263\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "264\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "265\n",
      "dissent\n",
      "C\n",
      "RR D_dissent\n",
      "266\n",
      "dissent\n",
      "P\n",
      "DD R_dissent\n",
      "267\n",
      "dissent\n",
      "P\n",
      "DD R_dissent\n",
      "268\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "269\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "270\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "271\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "272\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "273\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "274\n",
      "no dissent\n",
      "275\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "276\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "277\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "278\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "279\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "280\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "281\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "282\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "283\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "284\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "285\n",
      "no dissent\n",
      "286\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "287\n",
      "no dissent\n",
      "288\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "289\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "290\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "291\n",
      "no dissent\n",
      "292\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "293\n",
      "dissent\n",
      "294\n",
      "dissent\n",
      "295\n",
      "dissent\n",
      "C\n",
      "D D_dissent\n",
      "296\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "297\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "298\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "299\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "300\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "301\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "302\n",
      "no dissent\n",
      "303\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "304\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "305\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "306\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "307\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "308\n",
      "no dissent\n",
      "309\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "310\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "311\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "312\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "313\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "314\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "315\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "316\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "317\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "318\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "319\n",
      "no dissent\n",
      "320\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "321\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "322\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "323\n",
      "dissent\n",
      "P\n",
      "DD R_dissent\n",
      "324\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "325\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "326\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "327\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "328\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "329\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "330\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "331\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "332\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "333\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "334\n",
      "dissent\n",
      "M\n",
      "DR D_dissent\n",
      "335\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "336\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "337\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "338\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "339\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "340\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "341\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "342\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "343\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "344\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "345\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "346\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "347\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "348\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "349\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "350\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "351\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "352\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "353\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "354\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "355\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "356\n",
      "no dissent\n",
      "357\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "358\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "359\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "360\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "361\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "362\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "363\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "364\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "365\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "366\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "367\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "368\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "369\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "370\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "371\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "372\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "373\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "374\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "375\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "376\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "377\n",
      "dissent\n",
      "378\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "379\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "380\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "381\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "382\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "383\n",
      "dissent\n",
      "P\n",
      "DD R_dissent\n",
      "384\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "385\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "386\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "387\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "388\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "389\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "390\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "391\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "392\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "393\n",
      "no dissent\n",
      "394\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "395\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "396\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "397\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "398\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "399\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "400\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "401\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "402\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "403\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "404\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "405\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "406\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "407\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "408\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "409\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "410\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "411\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "412\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "413\n",
      "no dissent\n",
      "414\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "415\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "416\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "417\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "418\n",
      "no dissent\n",
      "419\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "420\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "421\n",
      "no dissent\n",
      "422\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "423\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "424\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "425\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "426\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "427\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "428\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "429\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "430\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "431\n",
      "dissent\n",
      "C\n",
      "D D_dissent\n",
      "432\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "433\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "434\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "435\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "436\n",
      "no dissent\n",
      "437\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "438\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "439\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "440\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "441\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "442\n",
      "no dissent\n",
      "443\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "444\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "445\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "446\n",
      "no dissent\n",
      "447\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "448\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "449\n",
      "dissent\n",
      "M\n",
      "DD R_dissent\n",
      "450\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "451\n",
      "no dissent\n",
      "452\n",
      "no dissent\n",
      "453\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "454\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "455\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "456\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "457\n",
      "dissent\n",
      "M\n",
      "DR D_dissent\n",
      "458\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "459\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "460\n",
      "no dissent\n",
      "461\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "462\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "463\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "464\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "465\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "466\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "467\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "468\n",
      "dissent\n",
      "469\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "470\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "471\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "472\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "473\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "474\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "475\n",
      "dissent\n",
      "P\n",
      "D D_dissent\n",
      "476\n",
      "no dissent\n",
      "477\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "478\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "479\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "480\n",
      "no dissent\n",
      "481\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "482\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "483\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "484\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "485\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "486\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "487\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "488\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "489\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "490\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "491\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "492\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "493\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "494\n",
      "dissent\n",
      "P\n",
      "D D_dissent\n",
      "495\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "496\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "497\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "498\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "499\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "500\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "501\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "502\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "503\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "504\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "505\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "506\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "507\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "508\n",
      "no dissent\n",
      "M\n",
      "RRR\n",
      "509\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "510\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "511\n",
      "no dissent\n",
      "512\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "513\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "514\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "515\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "516\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "517\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "518\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "519\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "520\n",
      "no dissent\n",
      "521\n",
      "no dissent\n",
      "522\n",
      "dissent\n",
      "P\n",
      "DD R_dissent\n",
      "523\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "524\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "525\n",
      "no dissent\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "C\n",
      "DDR\n",
      "526\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "527\n",
      "no dissent\n",
      "528\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "529\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "530\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "531\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "532\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "533\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "534\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "535\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "536\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "537\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "538\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "539\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "540\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "541\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "542\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "543\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "544\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "545\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "546\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "547\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "548\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "549\n",
      "no dissent\n",
      "C\n",
      "DD\n",
      "550\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "551\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "552\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "553\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "554\n",
      "no dissent\n",
      "555\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "556\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "557\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "558\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "559\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "560\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "561\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "562\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "563\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "564\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "565\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "566\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "567\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "568\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "569\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "570\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "571\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "572\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "573\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "574\n",
      "no dissent\n",
      "575\n",
      "no dissent\n",
      "576\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "577\n",
      "no dissent\n",
      "578\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "579\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "580\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "581\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "582\n",
      "no dissent\n",
      "583\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "584\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "585\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "586\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "587\n",
      "no dissent\n",
      "588\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "589\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "590\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "591\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "592\n",
      "no dissent\n",
      "593\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "594\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "595\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "596\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "597\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "598\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "599\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "600\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "601\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "602\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "603\n",
      "dissent\n",
      "C\n",
      "RR D_dissent\n",
      "604\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "605\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "606\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "607\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "608\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "609\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "610\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "611\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "612\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "613\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "614\n",
      "dissent\n",
      "M\n",
      "D D_dissent\n",
      "615\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "616\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "617\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "618\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "619\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "620\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "621\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "622\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "623\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "624\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "625\n",
      "dissent\n",
      "C\n",
      "RR D_dissent\n",
      "626\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "627\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "628\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "629\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "630\n",
      "no dissent\n",
      "631\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "632\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "633\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "634\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "635\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "636\n",
      "no dissent\n",
      "637\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "638\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "639\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "640\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "641\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "642\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "643\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "644\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "645\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "646\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "647\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "648\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "649\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "650\n",
      "dissent\n",
      "M\n",
      "DR D_dissent\n",
      "651\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "652\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "653\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "654\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "655\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "656\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "657\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "658\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "659\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "660\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "661\n",
      "no dissent\n",
      "C\n",
      "RR\n",
      "662\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "663\n",
      "dissent\n",
      "664\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "665\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "666\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "667\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "668\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "669\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "670\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "671\n",
      "dissent\n",
      "M\n",
      "DD R_dissent\n",
      "672\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "673\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "674\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "675\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "676\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "677\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "678\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "679\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "680\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "681\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "682\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "683\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "684\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "685\n",
      "dissent\n",
      "P\n",
      "RR D_dissent\n",
      "686\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "687\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "688\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "689\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "690\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "691\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "692\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "693\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "694\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "695\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "696\n",
      "no dissent\n",
      "697\n",
      "no dissent\n",
      "698\n",
      "no dissent\n",
      "699\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "700\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "701\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "702\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "703\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "704\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "705\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "706\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "707\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "708\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "709\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "710\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "711\n",
      "dissent\n",
      "P\n",
      "D D_dissent\n",
      "712\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "713\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "714\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "715\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "716\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "717\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "718\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "719\n",
      "dissent\n",
      "C\n",
      "RR D_dissent\n",
      "720\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "721\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "722\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "723\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "724\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "725\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "726\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "727\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "728\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "729\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "730\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "731\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "732\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "733\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "734\n",
      "no dissent\n",
      "735\n",
      "no dissent\n",
      "736\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "737\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "738\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "739\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "740\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "741\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "742\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "743\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "744\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "745\n",
      "no dissent\n",
      "746\n",
      "dissent\n",
      "M\n",
      "DR D_dissent\n",
      "747\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "748\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "749\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "750\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "751\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "752\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "753\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "754\n",
      "no dissent\n",
      "755\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "756\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "757\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "758\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "759\n",
      "no dissent\n",
      "760\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "761\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "762\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "763\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "764\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "765\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "766\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "767\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "768\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "769\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "770\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "771\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "772\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "773\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "774\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "775\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "776\n",
      "dissent\n",
      "M\n",
      "DD R_dissent\n",
      "777\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "778\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "779\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "780\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "781\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "782\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "783\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "784\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "785\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "786\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "787\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "788\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "789\n",
      "no dissent\n",
      "790\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "791\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "792\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "793\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "794\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "795\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "796\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "797\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "798\n",
      "dissent\n",
      "M\n",
      "DR D_dissent\n",
      "799\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "800\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "801\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "802\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "803\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "804\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "805\n",
      "no dissent\n",
      "806\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "807\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "808\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "809\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "810\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "811\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "812\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "813\n",
      "no dissent\n",
      "814\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "815\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "816\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "817\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "818\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "819\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "820\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "821\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "822\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "823\n",
      "no dissent\n",
      "824\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "825\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "826\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "827\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "828\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "829\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "830\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "831\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "832\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "833\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "834\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "835\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "836\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "837\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "838\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "839\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "840\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "841\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "842\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "843\n",
      "dissent\n",
      "M\n",
      "DD R_dissent\n",
      "844\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "845\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "846\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "847\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "848\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "849\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "850\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "851\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "852\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "853\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "854\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "855\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "856\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "857\n",
      "no dissent\n",
      "858\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "859\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "860\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "861\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "862\n",
      "dissent\n",
      "863\n",
      "dissent\n",
      "M\n",
      "DD R_dissent\n",
      "864\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "865\n",
      "no dissent\n",
      "866\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "867\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "868\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "869\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "870\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "871\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "872\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "873\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "874\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "875\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "876\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "877\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "878\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "879\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "880\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "881\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "882\n",
      "no dissent\n",
      "883\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "884\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "885\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "886\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "887\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "888\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "889\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "890\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "891\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "892\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "893\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "894\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "895\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "896\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "897\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "898\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "899\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "900\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "901\n",
      "dissent\n",
      "P\n",
      "D D_dissent\n",
      "902\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "903\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "904\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "905\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "906\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "907\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "908\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "909\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "910\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "911\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "912\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "913\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "914\n",
      "dissent\n",
      "M\n",
      "DR D_dissent\n",
      "915\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "916\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "917\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "918\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "919\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "920\n",
      "dissent\n",
      "921\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "922\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "923\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "924\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "925\n",
      "no dissent\n",
      "926\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "927\n",
      "no dissent\n",
      "928\n",
      "no dissent\n",
      "929\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "930\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "931\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "932\n",
      "no dissent\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "933\n",
      "no dissent\n",
      "934\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "935\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "936\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "937\n",
      "no dissent\n",
      "938\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "939\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "940\n",
      "no dissent\n",
      "941\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "942\n",
      "no dissent\n",
      "943\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "944\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "945\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "946\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "947\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "948\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "949\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "950\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "951\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "952\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "953\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "954\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "955\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "956\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "957\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "958\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "959\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "960\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "961\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "962\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "963\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "964\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "965\n",
      "dissent\n",
      "M\n",
      "DD R_dissent\n",
      "966\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "967\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "968\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "969\n",
      "dissent\n",
      "970\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "971\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "972\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "973\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "974\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "975\n",
      "dissent\n",
      "C\n",
      "RR D_dissent\n",
      "976\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "977\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "978\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "979\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "980\n",
      "dissent\n",
      "M\n",
      "D D_dissent\n",
      "981\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "982\n",
      "no dissent\n",
      "983\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "984\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "985\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "986\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "987\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "988\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "989\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "990\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "991\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "992\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "993\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "994\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "995\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "996\n",
      "dissent\n",
      "M\n",
      "DR D_dissent\n",
      "997\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "998\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "999\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1000\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1001\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1002\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1003\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1004\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1005\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1006\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1007\n",
      "no dissent\n",
      "1008\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1009\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1010\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1011\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1012\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1013\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1014\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1015\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "1016\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1017\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1018\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1019\n",
      "no dissent\n",
      "1020\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1021\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1022\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1023\n",
      "dissent\n",
      "C\n",
      "DD R_dissent\n",
      "1024\n",
      "no dissent\n",
      "1025\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1026\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1027\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1028\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1029\n",
      "no dissent\n",
      "1030\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1031\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1032\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1033\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1034\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1035\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1036\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1037\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1038\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1039\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1040\n",
      "dissent\n",
      "P\n",
      "D D_dissent\n",
      "1041\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1042\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1043\n",
      "no dissent\n",
      "P\n",
      "RD\n",
      "1044\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1045\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1046\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1047\n",
      "dissent\n",
      "C\n",
      "RR R_dissent\n",
      "1048\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1049\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1050\n",
      "dissent\n",
      "P\n",
      "D D_dissent\n",
      "1051\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1052\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "1053\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1054\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1055\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "1056\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1057\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1058\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1059\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1060\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1061\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1062\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1063\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1064\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1065\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1066\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1067\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1068\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1069\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1070\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1071\n",
      "no dissent\n",
      "1072\n",
      "dissent\n",
      "1073\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1074\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1075\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1076\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1077\n",
      "no dissent\n",
      "1078\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1079\n",
      "no dissent\n",
      "1080\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1081\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "1082\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1083\n",
      "no dissent\n",
      "1084\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1085\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1086\n",
      "dissent\n",
      "1087\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1088\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1089\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1090\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1091\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1092\n",
      "no dissent\n",
      "1093\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1094\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1095\n",
      "dissent\n",
      "M\n",
      "DR R_dissent\n",
      "1096\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1097\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1098\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1099\n",
      "dissent\n",
      "M\n",
      "DD R_dissent\n",
      "1100\n",
      "no dissent\n",
      "1101\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1102\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1103\n",
      "dissent\n",
      "M\n",
      "D D_dissent\n",
      "1104\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1105\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1106\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1107\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1108\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1109\n",
      "dissent\n",
      "P\n",
      "D D_dissent\n",
      "1110\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1111\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1112\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1113\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1114\n",
      "no dissent\n",
      "M\n",
      "DD\n",
      "1115\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1116\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1117\n",
      "dissent\n",
      "P\n",
      "DD R_dissent\n",
      "1118\n",
      "dissent\n",
      "1119\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1120\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1121\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1122\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1123\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1124\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1125\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1126\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1127\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1128\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1129\n",
      "no dissent\n",
      "C\n",
      "DD\n",
      "1130\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1131\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "1132\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1133\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1134\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1135\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1136\n",
      "no dissent\n",
      "M\n",
      "RD\n",
      "1137\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1138\n",
      "no dissent\n",
      "M\n",
      "DD\n",
      "1139\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "1140\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1141\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1142\n",
      "no dissent\n",
      "P\n",
      "DD\n",
      "1143\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1144\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "1145\n",
      "no dissent\n",
      "C\n",
      "DD\n",
      "1146\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1147\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1148\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1149\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1150\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1151\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1152\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1153\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1154\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1155\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1156\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "1157\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1158\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1159\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1160\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1161\n",
      "dissent\n",
      "M\n",
      "DR R_dissent\n",
      "1162\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1163\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1164\n",
      "dissent\n",
      "P\n",
      "DR R_dissent\n",
      "1165\n",
      "dissent\n",
      "1166\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1167\n",
      "no dissent\n",
      "P\n",
      "RR\n",
      "1168\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1169\n",
      "no dissent\n",
      "M\n",
      "DD\n",
      "1170\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1171\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1172\n",
      "no dissent\n",
      "C\n",
      "RD\n",
      "1173\n",
      "no dissent\n",
      "1174\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1175\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "1176\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "1177\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1178\n",
      "no dissent\n",
      "P\n",
      "RD\n",
      "1179\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1180\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1181\n",
      "no dissent\n",
      "1182\n",
      "no dissent\n",
      "M\n",
      "RRR\n",
      "1183\n",
      "dissent\n",
      "P\n",
      "RR D_dissent\n",
      "1184\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1185\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1186\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1187\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1188\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1189\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1190\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1191\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1192\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1193\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1194\n",
      "dissent\n",
      "C\n",
      "DR D_dissent\n",
      "1195\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1196\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1197\n",
      "dissent\n",
      "1198\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1199\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1200\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1201\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1202\n",
      "no dissent\n",
      "1203\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1204\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1205\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1206\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1207\n",
      "dissent\n",
      "P\n",
      "DR D_dissent\n",
      "1208\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1209\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1210\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1211\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1212\n",
      "no dissent\n",
      "1213\n",
      "no dissent\n",
      "1214\n",
      "no dissent\n",
      "1215\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1216\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1217\n",
      "no dissent\n",
      "1218\n",
      "dissent\n",
      "M\n",
      "RR D_dissent\n",
      "1219\n",
      "dissent\n",
      "M\n",
      "Two judges dissented\n",
      "1220\n",
      "no dissent\n",
      "1221\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1222\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1223\n",
      "dissent\n",
      "M\n",
      "DR R_dissent\n",
      "1224\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "1225\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1226\n",
      "no dissent\n",
      "1227\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1228\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "1229\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1230\n",
      "dissent\n",
      "M\n",
      "DR D_dissent\n",
      "1231\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "1232\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1233\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1234\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1235\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1236\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1237\n",
      "dissent\n",
      "C\n",
      "RR D_dissent\n",
      "1238\n",
      "dissent\n",
      "P\n",
      "RR D_dissent\n",
      "1239\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1240\n",
      "no dissent\n",
      "1241\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "1242\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1243\n",
      "no dissent\n",
      "1244\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1245\n",
      "no dissent\n",
      "1246\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1247\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1248\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1249\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1250\n",
      "dissent\n",
      "P\n",
      "RR D_dissent\n",
      "1251\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1252\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1253\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1254\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1255\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1256\n",
      "dissent\n",
      "M\n",
      "RR D_dissent\n",
      "1257\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1258\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1259\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1260\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1261\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1262\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1263\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1264\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1265\n",
      "dissent\n",
      "C\n",
      "DR R_dissent\n",
      "1266\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1267\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "1268\n",
      "no dissent\n",
      "M\n",
      "RRR\n",
      "1269\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1270\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1271\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1272\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1273\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1274\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1275\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1276\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1277\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1278\n",
      "dissent\n",
      "C\n",
      "D D_dissent\n",
      "1279\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "1280\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1281\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1282\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1283\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1284\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1285\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1286\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1287\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1288\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1289\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1290\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1291\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1292\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1293\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1294\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1295\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1296\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1297\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1298\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1299\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1300\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1301\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1302\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1303\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1304\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1305\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1306\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1307\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1308\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1309\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1310\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1311\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "1312\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1313\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1314\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1315\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1316\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1317\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1318\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1319\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1320\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1321\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1322\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1323\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1324\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1325\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1326\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1327\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1328\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1329\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1330\n",
      "no dissent\n",
      "1331\n",
      "no dissent\n",
      "1332\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1333\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1334\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1335\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1336\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1337\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1338\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1339\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1340\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1341\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1342\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1343\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1344\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1345\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1346\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1347\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1348\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1349\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1350\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1351\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1352\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1353\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1354\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1355\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1356\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1357\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1358\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1359\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1360\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1361\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1362\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1363\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1364\n",
      "no dissent\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "C\n",
      "DDD\n",
      "1365\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1366\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1367\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1368\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1369\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1370\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1371\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "1372\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1373\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1374\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1375\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1376\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1377\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1378\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1379\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1380\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1381\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1382\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1383\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1384\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1385\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1386\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1387\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1388\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1389\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1390\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1391\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1392\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1393\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1394\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1395\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1396\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1397\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1398\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1399\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1400\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1401\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1402\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1403\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1404\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1405\n",
      "no dissent\n",
      "1406\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1407\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1408\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "1409\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1410\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1411\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1412\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1413\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1414\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1415\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1416\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1417\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1418\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1419\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1420\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1421\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1422\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1423\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1424\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1425\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1426\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1427\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1428\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1429\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1430\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1431\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1432\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1433\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1434\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1435\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1436\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1437\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1438\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1439\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1440\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1441\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1442\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1443\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1444\n",
      "no dissent\n",
      "1445\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1446\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1447\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1448\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1449\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1450\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1451\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1452\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1453\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1454\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1455\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1456\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1457\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1458\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1459\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1460\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1461\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1462\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1463\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1464\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1465\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1466\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1467\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1468\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1469\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1470\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1471\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1472\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1473\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1474\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1475\n",
      "no dissent\n",
      "1476\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1477\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1478\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1479\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1480\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1481\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1482\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1483\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1484\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1485\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1486\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1487\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1488\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1489\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1490\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1491\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1492\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1493\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1494\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1495\n",
      "no dissent\n",
      "1496\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1497\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1498\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1499\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1500\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1501\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1502\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1503\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1504\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1505\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1506\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1507\n",
      "no dissent\n",
      "1508\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1509\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1510\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1511\n",
      "no dissent\n",
      "1512\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1513\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1514\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1515\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1516\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1517\n",
      "no dissent\n",
      "M\n",
      "RRR\n",
      "1518\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1519\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1520\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1521\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1522\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1523\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1524\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1525\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1526\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1527\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1528\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1529\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1530\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1531\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1532\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1533\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1534\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1535\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1536\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1537\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1538\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1539\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1540\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1541\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1542\n",
      "no dissent\n",
      "1543\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1544\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1545\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1546\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1547\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1548\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1549\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1550\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1551\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1552\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1553\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1554\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1555\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1556\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1557\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1558\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1559\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1560\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1561\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1562\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1563\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1564\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1565\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1566\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1567\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1568\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1569\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1570\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1571\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1572\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1573\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1574\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1575\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1576\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1577\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1578\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1579\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1580\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1581\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1582\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1583\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1584\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1585\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1586\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1587\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1588\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1589\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1590\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1591\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1592\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1593\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1594\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1595\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1596\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1597\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1598\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1599\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1600\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1601\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1602\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1603\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1604\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1605\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1606\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1607\n",
      "no dissent\n",
      "1608\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1609\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1610\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1611\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1612\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1613\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1614\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1615\n",
      "no dissent\n",
      "1616\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1617\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1618\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1619\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1620\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1621\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1622\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1623\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1624\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1625\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1626\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1627\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1628\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1629\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1630\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1631\n",
      "no dissent\n",
      "1632\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1633\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1634\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1635\n",
      "no dissent\n",
      "1636\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1637\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1638\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1639\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1640\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1641\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1642\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1643\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1644\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1645\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1646\n",
      "no dissent\n",
      "1647\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1648\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1649\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1650\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1651\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1652\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1653\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1654\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1655\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1656\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1657\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1658\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1659\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1660\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1661\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1662\n",
      "no dissent\n",
      "1663\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1664\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1665\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1666\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1667\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1668\n",
      "no dissent\n",
      "1669\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1670\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1671\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1672\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1673\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1674\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1675\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1676\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1677\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1678\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1679\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1680\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1681\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1682\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1683\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1684\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1685\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1686\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1687\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1688\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1689\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1690\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1691\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1692\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1693\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1694\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1695\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1696\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1697\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1698\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1699\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1700\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1701\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1702\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1703\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1704\n",
      "no dissent\n",
      "1705\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1706\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1707\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1708\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1709\n",
      "no dissent\n",
      "1710\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1711\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1712\n",
      "no dissent\n",
      "1713\n",
      "no dissent\n",
      "1714\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1715\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1716\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1717\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1718\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1719\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1720\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1721\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1722\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1723\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1724\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1725\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1726\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1727\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1728\n",
      "no dissent\n",
      "1729\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1730\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1731\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1732\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1733\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1734\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1735\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1736\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1737\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1738\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1739\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1740\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1741\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1742\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1743\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1744\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1745\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1746\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1747\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1748\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1749\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1750\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1751\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1752\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1753\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1754\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1755\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1756\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1757\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1758\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1759\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1760\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1761\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1762\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1763\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1764\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1765\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1766\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1767\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1768\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1769\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "1770\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1771\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1772\n",
      "no dissent\n",
      "1773\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1774\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1775\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1776\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1777\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1778\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1779\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1780\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1781\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1782\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1783\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1784\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1785\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1786\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1787\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1788\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1789\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1790\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1791\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1792\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1793\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1794\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1795\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1796\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1797\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1798\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1799\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1800\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1801\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1802\n",
      "no dissent\n",
      "1803\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1804\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1805\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1806\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1807\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1808\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1809\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1810\n",
      "no dissent\n",
      "1811\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1812\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1813\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1814\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1815\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1816\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1817\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1818\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1819\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1820\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1821\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1822\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1823\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1824\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1825\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1826\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1827\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1828\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1829\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1830\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1831\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1832\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1833\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1834\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1835\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1836\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1837\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1838\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1839\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1840\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1841\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1842\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1843\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1844\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1845\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1846\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1847\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1848\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1849\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1850\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1851\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1852\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1853\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1854\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1855\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1856\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1857\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1858\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1859\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1860\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1861\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1862\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1863\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1864\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1865\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1866\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1867\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1868\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1869\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "1870\n",
      "no dissent\n",
      "1871\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1872\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1873\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1874\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1875\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1876\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1877\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1878\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1879\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1880\n",
      "no dissent\n",
      "1881\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1882\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1883\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1884\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1885\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1886\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1887\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1888\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1889\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1890\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1891\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1892\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1893\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1894\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1895\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1896\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1897\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1898\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1899\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1900\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1901\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "1902\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1903\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1904\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1905\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1906\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1907\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1908\n",
      "no dissent\n",
      "1909\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1910\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1911\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1912\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1913\n",
      "no dissent\n",
      "1914\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1915\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1916\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1917\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1918\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1919\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1920\n",
      "no dissent\n",
      "1921\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1922\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1923\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1924\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1925\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1926\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1927\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1928\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1929\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1930\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1931\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1932\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1933\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1934\n",
      "no dissent\n",
      "1935\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1936\n",
      "no dissent\n",
      "1937\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "1938\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1939\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1940\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1941\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1942\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1943\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1944\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1945\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1946\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1947\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1948\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1949\n",
      "no dissent\n",
      "1950\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1951\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1952\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1953\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1954\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1955\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1956\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1957\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1958\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "1959\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1960\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1961\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1962\n",
      "no dissent\n",
      "C\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "DDD\n",
      "1963\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1964\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1965\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1966\n",
      "no dissent\n",
      "1967\n",
      "no dissent\n",
      "1968\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1969\n",
      "no dissent\n",
      "1970\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "1971\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1972\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1973\n",
      "no dissent\n",
      "1974\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1975\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1976\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "1977\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1978\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1979\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1980\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "1981\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1982\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1983\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1984\n",
      "no dissent\n",
      "1985\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "1986\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "1987\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1988\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1989\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1990\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1991\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1992\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1993\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1994\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1995\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1996\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1997\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "1998\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "1999\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2000\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2001\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2002\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2003\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "2004\n",
      "no dissent\n",
      "M\n",
      "RR\n",
      "2005\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2006\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2007\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2008\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2009\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "2010\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "2011\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2012\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2013\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2014\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2015\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2016\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2017\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2018\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2019\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2020\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2021\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2022\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2023\n",
      "no dissent\n",
      "M\n",
      "RRR\n",
      "2024\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "2025\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2026\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2027\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2028\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2029\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2030\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2031\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2032\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2033\n",
      "no dissent\n",
      "2034\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2035\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2036\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2037\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2038\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2039\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "2040\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2041\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "2042\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2043\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2044\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2045\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2046\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2047\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2048\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2049\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2050\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2051\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2052\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2053\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "2054\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "2055\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2056\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2057\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2058\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2059\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2060\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "2061\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2062\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2063\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2064\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2065\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2066\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2067\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2068\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2069\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2070\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2071\n",
      "no dissent\n",
      "2072\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "2073\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "2074\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2075\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2076\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2077\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2078\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2079\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2080\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "2081\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2082\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2083\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2084\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2085\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2086\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2087\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2088\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "2089\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2090\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2091\n",
      "no dissent\n",
      "M\n",
      "RRD\n",
      "2092\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2093\n",
      "no dissent\n",
      "2094\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2095\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2096\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2097\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2098\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2099\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "2100\n",
      "no dissent\n",
      "M\n",
      "DDD\n",
      "2101\n",
      "no dissent\n",
      "P\n",
      "DDD\n",
      "2102\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2103\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2104\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2105\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2106\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2107\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2108\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2109\n",
      "no dissent\n",
      "2110\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2111\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2112\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "2113\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2114\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2115\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "2116\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2117\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2118\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2119\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2120\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "2121\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2122\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2123\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2124\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2125\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2126\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2127\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2128\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "2129\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2130\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2131\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2132\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2133\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2134\n",
      "no dissent\n",
      "2135\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2136\n",
      "no dissent\n",
      "2137\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2138\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2139\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2140\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2141\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2142\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2143\n",
      "no dissent\n",
      "2144\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "2145\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2146\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2147\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2148\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "2149\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2150\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2151\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2152\n",
      "no dissent\n",
      "2153\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2154\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2155\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2156\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2157\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "2158\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2159\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2160\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2161\n",
      "no dissent\n",
      "P\n",
      "RRD\n",
      "2162\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2163\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2164\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2165\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2166\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2167\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2168\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2169\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2170\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2171\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2172\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2173\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2174\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2175\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2176\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2177\n",
      "no dissent\n",
      "C\n",
      "RRR\n",
      "2178\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2179\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2180\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2181\n",
      "no dissent\n",
      "2182\n",
      "no dissent\n",
      "2183\n",
      "no dissent\n",
      "2184\n",
      "no dissent\n",
      "2185\n",
      "no dissent\n",
      "2186\n",
      "no dissent\n",
      "2187\n",
      "no dissent\n",
      "2188\n",
      "no dissent\n",
      "2189\n",
      "no dissent\n",
      "2190\n",
      "no dissent\n",
      "2191\n",
      "no dissent\n",
      "2192\n",
      "no dissent\n",
      "2193\n",
      "no dissent\n",
      "2194\n",
      "no dissent\n",
      "2195\n",
      "no dissent\n",
      "2196\n",
      "no dissent\n",
      "2197\n",
      "no dissent\n",
      "2198\n",
      "no dissent\n",
      "2199\n",
      "no dissent\n",
      "2200\n",
      "no dissent\n",
      "2201\n",
      "no dissent\n",
      "2202\n",
      "no dissent\n",
      "2203\n",
      "no dissent\n",
      "2204\n",
      "no dissent\n",
      "2205\n",
      "no dissent\n",
      "2206\n",
      "no dissent\n",
      "2207\n",
      "no dissent\n",
      "2208\n",
      "dissent\n",
      "2209\n",
      "no dissent\n",
      "2210\n",
      "no dissent\n",
      "2211\n",
      "no dissent\n",
      "2212\n",
      "no dissent\n",
      "2213\n",
      "no dissent\n",
      "2214\n",
      "no dissent\n",
      "2215\n",
      "no dissent\n",
      "2216\n",
      "dissent\n",
      "2217\n",
      "no dissent\n",
      "2218\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2219\n",
      "no dissent\n",
      "2220\n",
      "no dissent\n",
      "2221\n",
      "no dissent\n",
      "2222\n",
      "no dissent\n",
      "2223\n",
      "no dissent\n",
      "2224\n",
      "no dissent\n",
      "2225\n",
      "no dissent\n",
      "2226\n",
      "no dissent\n",
      "2227\n",
      "no dissent\n",
      "2228\n",
      "no dissent\n",
      "2229\n",
      "no dissent\n",
      "2230\n",
      "dissent\n",
      "2231\n",
      "no dissent\n",
      "2232\n",
      "no dissent\n",
      "2233\n",
      "no dissent\n",
      "2234\n",
      "no dissent\n",
      "2235\n",
      "no dissent\n",
      "2236\n",
      "no dissent\n",
      "2237\n",
      "no dissent\n",
      "2238\n",
      "no dissent\n",
      "2239\n",
      "no dissent\n",
      "2240\n",
      "no dissent\n",
      "2241\n",
      "no dissent\n",
      "2242\n",
      "no dissent\n",
      "2243\n",
      "no dissent\n",
      "2244\n",
      "no dissent\n",
      "2245\n",
      "no dissent\n",
      "2246\n",
      "no dissent\n",
      "2247\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2248\n",
      "no dissent\n",
      "2249\n",
      "no dissent\n",
      "2250\n",
      "no dissent\n",
      "2251\n",
      "no dissent\n",
      "2252\n",
      "no dissent\n",
      "2253\n",
      "no dissent\n",
      "2254\n",
      "dissent\n",
      "2255\n",
      "no dissent\n",
      "2256\n",
      "no dissent\n",
      "2257\n",
      "no dissent\n",
      "2258\n",
      "no dissent\n",
      "2259\n",
      "no dissent\n",
      "2260\n",
      "no dissent\n",
      "2261\n",
      "no dissent\n",
      "2262\n",
      "no dissent\n",
      "2263\n",
      "no dissent\n",
      "2264\n",
      "no dissent\n",
      "2265\n",
      "no dissent\n",
      "2266\n",
      "no dissent\n",
      "2267\n",
      "no dissent\n",
      "2268\n",
      "no dissent\n",
      "2269\n",
      "no dissent\n",
      "2270\n",
      "no dissent\n",
      "2271\n",
      "no dissent\n",
      "2272\n",
      "no dissent\n",
      "M\n",
      "DDR\n",
      "2273\n",
      "dissent\n",
      "2274\n",
      "dissent\n",
      "2275\n",
      "no dissent\n",
      "2276\n",
      "no dissent\n",
      "2277\n",
      "no dissent\n",
      "2278\n",
      "no dissent\n",
      "2279\n",
      "no dissent\n",
      "2280\n",
      "no dissent\n",
      "2281\n",
      "no dissent\n",
      "2282\n",
      "no dissent\n",
      "2283\n",
      "no dissent\n",
      "2284\n",
      "no dissent\n",
      "2285\n",
      "no dissent\n",
      "2286\n",
      "no dissent\n",
      "2287\n",
      "no dissent\n",
      "2288\n",
      "no dissent\n",
      "2289\n",
      "no dissent\n",
      "2290\n",
      "no dissent\n",
      "2291\n",
      "no dissent\n",
      "2292\n",
      "no dissent\n",
      "2293\n",
      "no dissent\n",
      "2294\n",
      "no dissent\n",
      "2295\n",
      "no dissent\n",
      "2296\n",
      "no dissent\n",
      "2297\n",
      "no dissent\n",
      "2298\n",
      "dissent\n",
      "2299\n",
      "no dissent\n",
      "2300\n",
      "no dissent\n",
      "2301\n",
      "dissent\n",
      "2302\n",
      "no dissent\n",
      "2303\n",
      "no dissent\n",
      "2304\n",
      "no dissent\n",
      "2305\n",
      "no dissent\n",
      "2306\n",
      "no dissent\n",
      "2307\n",
      "no dissent\n",
      "2308\n",
      "no dissent\n",
      "2309\n",
      "no dissent\n",
      "2310\n",
      "no dissent\n",
      "2311\n",
      "no dissent\n",
      "2312\n",
      "no dissent\n",
      "2313\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2314\n",
      "no dissent\n",
      "2315\n",
      "no dissent\n",
      "2316\n",
      "no dissent\n",
      "2317\n",
      "no dissent\n",
      "2318\n",
      "no dissent\n",
      "2319\n",
      "no dissent\n",
      "2320\n",
      "no dissent\n",
      "2321\n",
      "no dissent\n",
      "2322\n",
      "no dissent\n",
      "2323\n",
      "no dissent\n",
      "2324\n",
      "no dissent\n",
      "2325\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2326\n",
      "no dissent\n",
      "2327\n",
      "no dissent\n",
      "2328\n",
      "no dissent\n",
      "2329\n",
      "no dissent\n",
      "2330\n",
      "no dissent\n",
      "2331\n",
      "no dissent\n",
      "2332\n",
      "no dissent\n",
      "2333\n",
      "no dissent\n",
      "2334\n",
      "no dissent\n",
      "2335\n",
      "no dissent\n",
      "2336\n",
      "no dissent\n",
      "2337\n",
      "no dissent\n",
      "2338\n",
      "no dissent\n",
      "2339\n",
      "no dissent\n",
      "2340\n",
      "no dissent\n",
      "2341\n",
      "no dissent\n",
      "2342\n",
      "no dissent\n",
      "2343\n",
      "no dissent\n",
      "2344\n",
      "no dissent\n",
      "2345\n",
      "no dissent\n",
      "2346\n",
      "no dissent\n",
      "2347\n",
      "no dissent\n",
      "2348\n",
      "no dissent\n",
      "2349\n",
      "no dissent\n",
      "2350\n",
      "no dissent\n",
      "2351\n",
      "no dissent\n",
      "2352\n",
      "no dissent\n",
      "2353\n",
      "no dissent\n",
      "2354\n",
      "no dissent\n",
      "2355\n",
      "no dissent\n",
      "2356\n",
      "no dissent\n",
      "2357\n",
      "no dissent\n",
      "2358\n",
      "no dissent\n",
      "2359\n",
      "no dissent\n",
      "2360\n",
      "no dissent\n",
      "2361\n",
      "no dissent\n",
      "2362\n",
      "no dissent\n",
      "2363\n",
      "no dissent\n",
      "2364\n",
      "no dissent\n",
      "2365\n",
      "no dissent\n",
      "2366\n",
      "no dissent\n",
      "2367\n",
      "no dissent\n",
      "2368\n",
      "no dissent\n",
      "2369\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2370\n",
      "no dissent\n",
      "2371\n",
      "no dissent\n",
      "2372\n",
      "no dissent\n",
      "2373\n",
      "no dissent\n",
      "2374\n",
      "no dissent\n",
      "2375\n",
      "no dissent\n",
      "2376\n",
      "dissent\n",
      "2377\n",
      "no dissent\n",
      "2378\n",
      "no dissent\n",
      "2379\n",
      "no dissent\n",
      "2380\n",
      "no dissent\n",
      "2381\n",
      "no dissent\n",
      "2382\n",
      "no dissent\n",
      "2383\n",
      "no dissent\n",
      "2384\n",
      "no dissent\n",
      "2385\n",
      "no dissent\n",
      "2386\n",
      "no dissent\n",
      "2387\n",
      "no dissent\n",
      "2388\n",
      "no dissent\n",
      "2389\n",
      "no dissent\n",
      "2390\n",
      "no dissent\n",
      "2391\n",
      "no dissent\n",
      "2392\n",
      "no dissent\n",
      "2393\n",
      "no dissent\n",
      "2394\n",
      "no dissent\n",
      "2395\n",
      "no dissent\n",
      "2396\n",
      "no dissent\n",
      "2397\n",
      "no dissent\n",
      "2398\n",
      "dissent\n",
      "2399\n",
      "no dissent\n",
      "2400\n",
      "no dissent\n",
      "2401\n",
      "dissent\n",
      "2402\n",
      "no dissent\n",
      "2403\n",
      "no dissent\n",
      "2404\n",
      "no dissent\n",
      "2405\n",
      "no dissent\n",
      "2406\n",
      "no dissent\n",
      "2407\n",
      "no dissent\n",
      "2408\n",
      "no dissent\n",
      "2409\n",
      "no dissent\n",
      "2410\n",
      "no dissent\n",
      "2411\n",
      "no dissent\n",
      "2412\n",
      "no dissent\n",
      "2413\n",
      "no dissent\n",
      "2414\n",
      "no dissent\n",
      "2415\n",
      "no dissent\n",
      "2416\n",
      "no dissent\n",
      "2417\n",
      "no dissent\n",
      "2418\n",
      "no dissent\n",
      "2419\n",
      "no dissent\n",
      "2420\n",
      "no dissent\n",
      "2421\n",
      "no dissent\n",
      "2422\n",
      "no dissent\n",
      "2423\n",
      "no dissent\n",
      "2424\n",
      "no dissent\n",
      "2425\n",
      "no dissent\n",
      "2426\n",
      "no dissent\n",
      "2427\n",
      "no dissent\n",
      "2428\n",
      "no dissent\n",
      "2429\n",
      "no dissent\n",
      "2430\n",
      "no dissent\n",
      "2431\n",
      "no dissent\n",
      "2432\n",
      "no dissent\n",
      "2433\n",
      "no dissent\n",
      "2434\n",
      "no dissent\n",
      "2435\n",
      "no dissent\n",
      "2436\n",
      "no dissent\n",
      "2437\n",
      "no dissent\n",
      "2438\n",
      "no dissent\n",
      "2439\n",
      "no dissent\n",
      "2440\n",
      "no dissent\n",
      "P\n",
      "RRR\n",
      "2441\n",
      "no dissent\n",
      "2442\n",
      "no dissent\n",
      "2443\n",
      "dissent\n",
      "2444\n",
      "no dissent\n",
      "2445\n",
      "no dissent\n",
      "2446\n",
      "no dissent\n",
      "2447\n",
      "no dissent\n",
      "2448\n",
      "no dissent\n",
      "2449\n",
      "no dissent\n",
      "2450\n",
      "no dissent\n",
      "2451\n",
      "no dissent\n",
      "2452\n",
      "no dissent\n",
      "2453\n",
      "no dissent\n",
      "2454\n",
      "no dissent\n",
      "2455\n",
      "dissent\n",
      "2456\n",
      "no dissent\n",
      "2457\n",
      "no dissent\n",
      "2458\n",
      "no dissent\n",
      "2459\n",
      "no dissent\n",
      "2460\n",
      "no dissent\n",
      "C\n",
      "DDR\n",
      "2461\n",
      "no dissent\n",
      "2462\n",
      "no dissent\n",
      "2463\n",
      "no dissent\n",
      "2464\n",
      "no dissent\n",
      "2465\n",
      "no dissent\n",
      "2466\n",
      "no dissent\n",
      "2467\n",
      "no dissent\n",
      "2468\n",
      "no dissent\n",
      "2469\n",
      "no dissent\n",
      "2470\n",
      "no dissent\n",
      "2471\n",
      "no dissent\n",
      "C\n",
      "DDD\n",
      "2472\n",
      "no dissent\n",
      "2473\n",
      "no dissent\n",
      "2474\n",
      "no dissent\n",
      "2475\n",
      "no dissent\n",
      "2476\n",
      "no dissent\n",
      "2477\n",
      "no dissent\n",
      "2478\n",
      "dissent\n",
      "2479\n",
      "no dissent\n",
      "2480\n",
      "no dissent\n",
      "2481\n",
      "no dissent\n",
      "2482\n",
      "dissent\n",
      "2483\n",
      "no dissent\n",
      "2484\n",
      "no dissent\n",
      "2485\n",
      "no dissent\n",
      "2486\n",
      "no dissent\n",
      "2487\n",
      "no dissent\n",
      "2488\n",
      "no dissent\n",
      "2489\n",
      "no dissent\n",
      "2490\n",
      "no dissent\n",
      "2491\n",
      "no dissent\n",
      "2492\n",
      "no dissent\n",
      "2493\n",
      "no dissent\n",
      "2494\n",
      "no dissent\n",
      "2495\n",
      "no dissent\n",
      "2496\n",
      "no dissent\n",
      "2497\n",
      "no dissent\n",
      "2498\n",
      "no dissent\n",
      "2499\n",
      "no dissent\n",
      "2500\n",
      "no dissent\n",
      "2501\n",
      "no dissent\n",
      "2502\n",
      "no dissent\n",
      "2503\n",
      "no dissent\n",
      "2504\n",
      "no dissent\n",
      "2505\n",
      "no dissent\n",
      "2506\n",
      "no dissent\n",
      "2507\n",
      "no dissent\n",
      "2508\n",
      "no dissent\n",
      "2509\n",
      "no dissent\n",
      "2510\n",
      "no dissent\n",
      "2511\n",
      "no dissent\n",
      "2512\n",
      "dissent\n",
      "2513\n",
      "no dissent\n",
      "2514\n",
      "no dissent\n",
      "2515\n",
      "no dissent\n",
      "2516\n",
      "no dissent\n",
      "2517\n",
      "no dissent\n",
      "2518\n",
      "no dissent\n",
      "2519\n",
      "no dissent\n",
      "2520\n",
      "no dissent\n",
      "P\n",
      "DDR\n",
      "2521\n",
      "no dissent\n",
      "2522\n",
      "no dissent\n",
      "2523\n",
      "no dissent\n",
      "2524\n",
      "dissent\n",
      "2525\n",
      "no dissent\n",
      "2526\n",
      "no dissent\n",
      "2527\n",
      "no dissent\n",
      "2528\n",
      "no dissent\n",
      "2529\n",
      "no dissent\n",
      "2530\n",
      "no dissent\n",
      "2531\n",
      "no dissent\n",
      "2532\n",
      "no dissent\n",
      "2533\n",
      "no dissent\n",
      "2534\n",
      "no dissent\n",
      "2535\n",
      "no dissent\n",
      "2536\n",
      "no dissent\n",
      "2537\n",
      "no dissent\n",
      "2538\n",
      "no dissent\n",
      "2539\n",
      "no dissent\n",
      "2540\n",
      "no dissent\n",
      "2541\n",
      "no dissent\n",
      "2542\n",
      "no dissent\n",
      "2543\n",
      "no dissent\n",
      "2544\n",
      "no dissent\n",
      "2545\n",
      "no dissent\n",
      "2546\n",
      "no dissent\n",
      "2547\n",
      "no dissent\n",
      "2548\n",
      "no dissent\n",
      "2549\n",
      "no dissent\n",
      "2550\n",
      "no dissent\n",
      "2551\n",
      "no dissent\n",
      "2552\n",
      "dissent\n",
      "2553\n",
      "no dissent\n",
      "2554\n",
      "no dissent\n",
      "2555\n",
      "no dissent\n",
      "2556\n",
      "no dissent\n",
      "2557\n",
      "dissent\n",
      "2558\n",
      "no dissent\n",
      "2559\n",
      "no dissent\n",
      "2560\n",
      "no dissent\n",
      "2561\n",
      "no dissent\n",
      "2562\n",
      "no dissent\n",
      "2563\n",
      "dissent\n",
      "2564\n",
      "no dissent\n",
      "2565\n",
      "no dissent\n",
      "2566\n",
      "no dissent\n",
      "2567\n",
      "no dissent\n",
      "2568\n",
      "no dissent\n",
      "2569\n",
      "dissent\n",
      "2570\n",
      "no dissent\n",
      "2571\n",
      "dissent\n",
      "2572\n",
      "no dissent\n",
      "2573\n",
      "no dissent\n",
      "2574\n",
      "no dissent\n",
      "2575\n",
      "no dissent\n",
      "2576\n",
      "no dissent\n",
      "2577\n",
      "no dissent\n",
      "2578\n",
      "no dissent\n",
      "2579\n",
      "no dissent\n",
      "2580\n",
      "no dissent\n",
      "2581\n",
      "no dissent\n",
      "2582\n",
      "no dissent\n",
      "2583\n",
      "no dissent\n",
      "2584\n",
      "no dissent\n",
      "2585\n",
      "no dissent\n",
      "2586\n",
      "no dissent\n",
      "2587\n",
      "no dissent\n",
      "2588\n",
      "no dissent\n",
      "2589\n",
      "dissent\n",
      "2590\n",
      "no dissent\n",
      "2591\n",
      "no dissent\n",
      "2592\n",
      "no dissent\n",
      "2593\n",
      "no dissent\n",
      "2594\n",
      "no dissent\n",
      "2595\n",
      "no dissent\n",
      "2596\n",
      "no dissent\n",
      "2597\n",
      "no dissent\n",
      "2598\n",
      "no dissent\n",
      "2599\n",
      "no dissent\n",
      "2600\n",
      "no dissent\n",
      "2601\n",
      "no dissent\n",
      "2602\n",
      "no dissent\n",
      "2603\n",
      "no dissent\n",
      "2604\n",
      "no dissent\n",
      "2605\n",
      "no dissent\n",
      "2606\n",
      "no dissent\n",
      "2607\n",
      "no dissent\n",
      "2608\n",
      "no dissent\n",
      "2609\n",
      "no dissent\n",
      "2610\n",
      "no dissent\n",
      "M\n",
      "RRR\n",
      "2611\n",
      "no dissent\n",
      "2612\n",
      "no dissent\n",
      "2613\n",
      "no dissent\n",
      "2614\n",
      "no dissent\n",
      "2615\n",
      "no dissent\n",
      "2616\n",
      "no dissent\n",
      "2617\n",
      "no dissent\n",
      "2618\n",
      "no dissent\n",
      "2619\n",
      "no dissent\n",
      "2620\n",
      "no dissent\n",
      "2621\n",
      "no dissent\n",
      "2622\n",
      "no dissent\n",
      "2623\n",
      "no dissent\n",
      "2624\n",
      "no dissent\n",
      "2625\n",
      "no dissent\n",
      "2626\n",
      "no dissent\n",
      "2627\n",
      "no dissent\n",
      "2628\n",
      "no dissent\n",
      "2629\n",
      "no dissent\n",
      "2630\n",
      "no dissent\n",
      "2631\n",
      "no dissent\n",
      "2632\n",
      "no dissent\n",
      "2633\n",
      "no dissent\n",
      "2634\n",
      "no dissent\n",
      "2635\n",
      "no dissent\n",
      "2636\n",
      "no dissent\n",
      "2637\n",
      "no dissent\n",
      "2638\n",
      "no dissent\n",
      "2639\n",
      "no dissent\n",
      "2640\n",
      "no dissent\n",
      "2641\n",
      "no dissent\n",
      "2642\n",
      "no dissent\n",
      "2643\n",
      "no dissent\n",
      "2644\n",
      "no dissent\n",
      "2645\n",
      "no dissent\n",
      "2646\n",
      "no dissent\n",
      "2647\n",
      "no dissent\n",
      "2648\n",
      "no dissent\n",
      "2649\n",
      "no dissent\n",
      "2650\n",
      "no dissent\n",
      "2651\n",
      "no dissent\n",
      "2652\n",
      "no dissent\n",
      "2653\n",
      "no dissent\n",
      "2654\n",
      "no dissent\n",
      "2655\n",
      "no dissent\n",
      "2656\n",
      "no dissent\n",
      "2657\n",
      "no dissent\n",
      "2658\n",
      "no dissent\n",
      "2659\n",
      "no dissent\n",
      "2660\n",
      "no dissent\n",
      "2661\n",
      "no dissent\n",
      "2662\n",
      "no dissent\n",
      "2663\n",
      "no dissent\n",
      "2664\n",
      "no dissent\n",
      "2665\n",
      "no dissent\n",
      "2666\n",
      "no dissent\n",
      "2667\n",
      "no dissent\n",
      "2668\n",
      "no dissent\n",
      "2669\n",
      "no dissent\n",
      "2670\n",
      "no dissent\n",
      "2671\n",
      "no dissent\n",
      "2672\n",
      "no dissent\n",
      "2673\n",
      "no dissent\n",
      "2674\n",
      "no dissent\n",
      "2675\n",
      "no dissent\n",
      "2676\n",
      "no dissent\n",
      "2677\n",
      "no dissent\n",
      "C\n",
      "RRD\n",
      "2678\n",
      "no dissent\n",
      "2679\n",
      "no dissent\n",
      "2680\n",
      "no dissent\n",
      "2681\n",
      "no dissent\n",
      "2682\n",
      "no dissent\n",
      "2683\n",
      "no dissent\n",
      "2684\n",
      "no dissent\n",
      "2685\n",
      "no dissent\n",
      "2686\n",
      "no dissent\n",
      "no dissent, but no judge found\n",
      "NA\n",
      "no dissent, but no judge found\n",
      "NA\n",
      "no dissent, but no judge found\n",
      "NA\n",
      "2687\n",
      "no dissent\n",
      "no dissent, but no judge found\n",
      "NA\n",
      "no dissent, but no judge found\n",
      "NA\n",
      "no dissent, but no judge found\n",
      "NA\n",
      "2688\n",
      "no dissent\n",
      "2689\n",
      "no dissent\n",
      "2690\n",
      "no dissent\n",
      "2691\n",
      "no dissent\n",
      "2692\n",
      "no dissent\n",
      "2693\n",
      "no dissent\n",
      "2694\n",
      "no dissent\n",
      "2695\n",
      "no dissent\n",
      "2696\n",
      "no dissent\n",
      "2697\n",
      "no dissent\n"
     ]
    }
   ],
   "source": [
    "###look at panel dependency based on republican vs democrat, less granular\n",
    "###right now using code to break it up by P brings and PTAB, see below, change depending on what's desired\n",
    "\n",
    "instance = 19 #use 21 for fees and sanctions excluded, 19 for included, 24 for obviousness, 26 for other validity\n",
    "namestring = 'all'\n",
    "\n",
    "Judges = ['', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Total']\n",
    "\n",
    "Affiliations = ['', 'D', 'D', 'D', 'R', 'D','D','R','D','R','D','R','R','R','D','R','D','R', 'D','R','D','D','D']\n",
    "\n",
    "rows, cols = 7, 8\n",
    "PCM = [[0 for i in range(cols)] for j in range(rows)]\n",
    "PCM[1][0] = 'P'\n",
    "PCM[2][0] = 'C'\n",
    "PCM[3][0] = 'M'\n",
    "PCM[4][0] = '% P'\n",
    "PCM[5][0] = '% C'\n",
    "PCM[6][0] = '% M'\n",
    "PCM[0][1] = 'RRR'\n",
    "PCM[0][2] = 'RRD'\n",
    "PCM[0][3] = 'DDR'\n",
    "PCM[0][4] = 'DDD'\n",
    "PCM[0][5] = 'DD'\n",
    "PCM[0][6] = 'RR'\n",
    "PCM[0][7] = 'RD'\n",
    "\n",
    "k = 0\n",
    "numjudges = len(Judges) - 1 #b/c it's offset by 1, you need to make it one larger\n",
    "while k < len(data):\n",
    "    \n",
    "    num_D_majority = 0\n",
    "    num_R_majority = 0\n",
    "\n",
    "    ji = 6\n",
    "    while ji < 9:\n",
    "\n",
    "        if data[k][ji] == 'Stoll' or data[k][ji] == 'Gilstrap' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Stark' or data[k][ji] == 'Fogel' or data[k][ji] == 'Taranto' or data[k][ji] == 'Hughes' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn':\n",
    "            num_D_majority = num_D_majority + 1\n",
    "        elif data[k][ji] == 'Schall' or data[k][ji] == \"Prost\" or data[k][ji] == \"Rader\" or data[k][ji] == 'Plager' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Newman':\n",
    "            num_R_majority = num_R_majority + 1\n",
    "        elif data[k][ji] == '':\n",
    "            z = 4 #throwaway\n",
    "#         else:\n",
    "#             print('no judge found')\n",
    "#             print(data[k][ji])\n",
    "\n",
    "        ji = ji + 1\n",
    "\n",
    "    if num_D_majority + num_R_majority == 2:\n",
    "        print(k)\n",
    "    \n",
    "    if data[k][instance] == 'P': # and ( (int(data[k][0].strftime('%Y')) > 2015) or (int(data[k][0].strftime('%Y')) == 2015 and int(data[k][0].strftime('%m')) > 6) ): \n",
    "#         print('P')\n",
    "        if num_R_majority == 3:\n",
    "            PCM[1][1] = PCM[1][1] + 1\n",
    "#             print('RRR')\n",
    "        elif num_R_majority == 2 and num_D_majority == 1:\n",
    "            PCM[1][2] = PCM[1][2] + 1\n",
    "#             print('RRD')\n",
    "        elif num_R_majority == 1 and num_D_majority == 2:\n",
    "            PCM[1][3] = PCM[1][3] + 1\n",
    "#             print('DDR')\n",
    "        elif num_D_majority == 3:\n",
    "            PCM[1][4] = PCM[1][4] + 1\n",
    "#             print('DDD')\n",
    "        elif num_R_majority == 0 and num_D_majority == 2:\n",
    "            PCM[1][5] = PCM[1][5] + 1\n",
    "#             print('DD')\n",
    "        elif num_R_majority == 2 and num_D_majority == 0:\n",
    "            PCM[1][6] = PCM[1][6] + 1\n",
    "#             print('RR')\n",
    "        elif num_R_majority == 1 and num_D_majority == 1:\n",
    "            PCM[1][7] = PCM[1][7] + 1\n",
    "#             print('RD')\n",
    "        else:\n",
    "            print('error')\n",
    "            print('is where the error is')\n",
    "\n",
    "    if data[k][instance] == 'C': # and ( (int(data[k][0].strftime('%Y')) > 2015) or (int(data[k][0].strftime('%Y')) == 2015 and int(data[k][0].strftime('%m')) > 6) ): \n",
    "#         print('C')\n",
    "        if num_R_majority == 3:\n",
    "            PCM[2][1] = PCM[2][1] + 1\n",
    "#             print('RRR')\n",
    "        elif num_R_majority == 2 and num_D_majority == 1:\n",
    "            PCM[2][2] = PCM[2][2] + 1\n",
    "#             print('RRD')\n",
    "        elif num_R_majority == 1 and num_D_majority == 2:\n",
    "            PCM[2][3] = PCM[2][3] + 1\n",
    "#             print('DDR')\n",
    "        elif num_D_majority == 3:\n",
    "            PCM[2][4] = PCM[2][4] + 1\n",
    "#             print('DDD')\n",
    "        elif num_R_majority == 0 and num_D_majority == 2:\n",
    "            PCM[2][5] = PCM[2][5] + 1\n",
    "#             print('DD')\n",
    "        elif num_R_majority == 2 and num_D_majority == 0:\n",
    "            PCM[2][6] = PCM[2][6] + 1\n",
    "#             print('RR')\n",
    "        elif num_R_majority == 1 and num_D_majority == 1:\n",
    "            PCM[2][7] = PCM[2][7] + 1\n",
    "#             print('RD')\n",
    "        else:\n",
    "            print('error')\n",
    "            print('is where the error is')\n",
    "    if data[k][instance] == 'M': #and ( (int(data[k][0].strftime('%Y')) > 2015) or (int(data[k][0].strftime('%Y')) == 2015 and int(data[k][0].strftime('%m')) > 6) ):\n",
    "#         print('M')\n",
    "        if num_R_majority == 3:\n",
    "            PCM[3][1] = PCM[3][1] + 1\n",
    "#             print('RRR')\n",
    "        elif num_R_majority == 2 and num_D_majority == 1:\n",
    "            PCM[3][2] = PCM[3][2] + 1\n",
    "#             print('RRD')\n",
    "        elif num_R_majority == 1 and num_D_majority == 2:\n",
    "            PCM[3][3] = PCM[3][3] + 1\n",
    "#             print('DDR')\n",
    "        elif num_D_majority == 3:\n",
    "            PCM[3][4] = PCM[3][4] + 1\n",
    "#             print('DDD')\n",
    "        elif num_R_majority == 0 and num_D_majority == 2:\n",
    "            PCM[3][5] = PCM[3][5] + 1\n",
    "#             print('DD')\n",
    "        elif num_R_majority == 2 and num_D_majority == 0:\n",
    "            PCM[3][6] = PCM[3][6] + 1\n",
    "#             print('RR')\n",
    "        elif num_R_majority == 1 and num_D_majority == 1:\n",
    "            PCM[3][7] = PCM[3][7] + 1\n",
    "#             print('RD')\n",
    "        else:\n",
    "            print('error')\n",
    "            print('is where the error is')\n",
    "\n",
    "    \n",
    "    \n",
    "    k = k + 1\n",
    "    \n",
    "\n",
    "    \n",
    "    \n",
    "\n",
    "k = 1\n",
    "while k < 8:\n",
    "    if (PCM[1][k]+PCM[2][k]+PCM[3][k]) != 0:    \n",
    "        PCM[4][k] = PCM[1][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "        PCM[5][k] = PCM[2][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "        PCM[6][k] = PCM[3][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "    k = k + 1\n",
    "\n",
    "df = pd.DataFrame(PCM).T\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//Political Ideology//Republican Democrat Data less granular \" + str(instance)+namestring+\" .xlsx\")\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "###look at panel dependency based on prior patent experience or OBSERVED PRO P Pro A, less granular\n",
    "###can break it up by P brings and PTAB\n",
    "\n",
    "instance = 19 #use 21 for fees and sanctions excluded, 19 for included, 24 for obviousness, 26 for other validity\n",
    "namestring = 'all R36 cases observed ideology Clevenger C'\n",
    "\n",
    "Judges = ['', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Total']\n",
    "\n",
    "#PPP, AAA, etc. when looking at observed ideology\n",
    "rows, cols = 7, 8\n",
    "PCM = [[0 for i in range(cols)] for j in range(rows)]\n",
    "PCM[1][0] = 'P'\n",
    "PCM[2][0] = 'C'\n",
    "PCM[3][0] = 'M'\n",
    "PCM[4][0] = '% P'\n",
    "PCM[5][0] = '% C'\n",
    "PCM[6][0] = '% M'\n",
    "PCM[0][1] = 'YYY'\n",
    "PCM[0][2] = 'YYN'\n",
    "PCM[0][3] = 'NNY'\n",
    "PCM[0][4] = 'NNN'\n",
    "PCM[0][5] = 'wrong'\n",
    "PCM[0][6] = 'wrong'\n",
    "PCM[0][7] = 'wrong'\n",
    "\n",
    "k = 0\n",
    "numjudges = len(Judges) - 1 #b/c it's offset by 1, you need to make it one larger\n",
    "while k < len(data):\n",
    "    \n",
    "    num_Y_majority = 0\n",
    "    num_N_majority = 0\n",
    "\n",
    "    ji = 6\n",
    "    while ji < 9:\n",
    "\n",
    "        # all: if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Hughes' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn':\n",
    "        \n",
    "        #prior patent experience\n",
    "#         if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn':\n",
    "#             num_Y_majority = num_Y_majority + 1\n",
    "#         #no prior background\n",
    "#         if data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes':\n",
    "#             num_N_majority = num_N_majority + 1\n",
    "        \n",
    "#         #technical background\n",
    "#         if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn':\n",
    "#             num_Y_majority = num_Y_majority + 1\n",
    "#         #no technical background\n",
    "#         if data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes' or data[k][ji] == 'Rader' or data[k][ji] == 'Taranto' or data[k][ji] == 'Dyk':\n",
    "#             num_N_majority = num_N_majority + 1\n",
    "\n",
    "#         #observed pro P\n",
    "        if  data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Linn' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Moore' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman':\n",
    "            num_Y_majority = num_Y_majority + 1\n",
    "        #observed pro C \n",
    "        if  data[k][ji] == 'Lourie' or data[k][ji] == 'Dyk' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Hughes' or data[k][ji] == 'Plager' or data[k][ji] == 'Schall' or data[k][ji] == 'Mayer' or data[k][ji] == 'Clevenger':\n",
    "            num_N_majority = num_N_majority + 1\n",
    "        \n",
    "        ji = ji + 1\n",
    "    \n",
    "    if data[k][instance] == 'P' and data[k][5] == 'Rule 36': #and data[k][5] == 'Rule 36':# and ( (int(data[k][0].strftime('%Y')) > 2015) or ( int(data[k][0].strftime('%Y')) == 2015 and int(data[k][0].strftime('%m')) > 6 ) ): #and data[k][21] == 'P' data[k][1] == 'PTO'\n",
    "        if num_Y_majority == 3:\n",
    "            PCM[1][1] = PCM[1][1] + 1\n",
    "            \n",
    "        elif num_Y_majority == 2 and num_N_majority == 1:\n",
    "            PCM[1][2] = PCM[1][2] + 1\n",
    "            \n",
    "        elif num_Y_majority == 1 and num_N_majority == 2:\n",
    "            PCM[1][3] = PCM[1][3] + 1\n",
    "            \n",
    "        elif num_N_majority == 3:\n",
    "            PCM[1][4] = PCM[1][4] + 1\n",
    "            \n",
    "        elif num_Y_majority == 0 and num_N_majority == 2:\n",
    "            PCM[1][5] = PCM[1][5] + 1\n",
    "            \n",
    "        elif num_Y_majority == 2 and num_N_majority == 0:\n",
    "            PCM[1][6] = PCM[1][6] + 1\n",
    "            \n",
    "        elif num_Y_majority == 1 and num_N_majority == 1:\n",
    "            PCM[1][7] = PCM[1][7] + 1\n",
    "            \n",
    "        else:\n",
    "            print('error')\n",
    "            print(k)\n",
    "\n",
    "    if data[k][instance] == 'C' and data[k][5] == 'Rule 36':# and ( (int(data[k][0].strftime('%Y')) > 2015) or ( int(data[k][0].strftime('%Y')) == 2015 and int(data[k][0].strftime('%m')) > 6 ) ): #data[k][1] == 'PTO': #and data[k][22] == 'P' \n",
    "        if num_Y_majority == 3:\n",
    "            PCM[2][1] = PCM[2][1] + 1\n",
    "        elif num_Y_majority == 2 and num_N_majority == 1:\n",
    "            PCM[2][2] = PCM[2][2] + 1\n",
    "        elif num_Y_majority == 1 and num_N_majority == 2:\n",
    "            PCM[2][3] = PCM[2][3] + 1\n",
    "        elif num_N_majority == 3:\n",
    "            PCM[2][4] = PCM[2][4] + 1\n",
    "        elif num_Y_majority == 0 and num_N_majority == 2:\n",
    "            PCM[2][5] = PCM[2][5] + 1\n",
    "        elif num_Y_majority == 2 and num_N_majority == 0:\n",
    "            PCM[2][6] = PCM[2][6] + 1\n",
    "        elif num_Y_majority == 1 and num_N_majority == 1:\n",
    "            PCM[2][7] = PCM[2][7] + 1\n",
    "        else:\n",
    "            print('error')\n",
    "            print(k)\n",
    "    \n",
    "    if data[k][instance] == 'M' and data[k][5] == 'Rule 36':# and ( (int(data[k][0].strftime('%Y')) > 2015) or ( int(data[k][0].strftime('%Y')) == 2015 and int(data[k][0].strftime('%m')) > 6 ) ): #data[k][1] == 'PTO': #and data[k][22] == 'P' \n",
    "        if num_Y_majority == 3:\n",
    "            PCM[3][1] = PCM[3][1] + 1\n",
    "        elif num_Y_majority == 2 and num_N_majority == 1:\n",
    "            PCM[3][2] = PCM[3][2] + 1\n",
    "        elif num_Y_majority == 1 and num_N_majority == 2:\n",
    "            PCM[3][3] = PCM[3][3] + 1\n",
    "        elif num_N_majority == 3:\n",
    "            PCM[3][4] = PCM[3][4] + 1\n",
    "        elif num_Y_majority == 0 and num_N_majority == 2:\n",
    "            PCM[3][5] = PCM[3][5] + 1\n",
    "        elif num_Y_majority == 2 and num_N_majority == 0:\n",
    "            PCM[3][6] = PCM[3][6] + 1\n",
    "        elif num_Y_majority == 1 and num_N_majority == 1:\n",
    "            PCM[3][7] = PCM[3][7] + 1\n",
    "        else:\n",
    "            print('error')\n",
    "            print(k)\n",
    "    \n",
    "    k = k + 1\n",
    "       \n",
    "\n",
    "k = 1\n",
    "while k < 8:\n",
    "    if (PCM[1][k]+PCM[2][k]+PCM[3][k]) != 0:    \n",
    "        PCM[4][k] = PCM[1][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "        PCM[5][k] = PCM[2][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "        PCM[6][k] = PCM[3][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "    k = k + 1\n",
    "\n",
    "df = pd.DataFrame(PCM).T\n",
    "#df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//Prior Patent Experience//Prior Patent Experience less granular \" + str(instance)+namestring+\" .xlsx\")\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//FINAL Regression Results//Observed Ideology//summary tables//\" +str(instance)+namestring+\" .xlsx\")\n",
    "\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [],
   "source": [
    "###look at affirmance rate and observed ideology\n",
    "\n",
    "instance = 19 #use 21 for fees and sanctions excluded, 19 for included, 24 for obviousness, 26 for other validity\n",
    "namestring = 'all C R36 unanimous affirmances observed ideology Clevenger C'\n",
    "\n",
    "Judges = ['', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Total']\n",
    "\n",
    "#PPP, AAA, etc. when looking at observed ideology\n",
    "rows, cols = 7, 8\n",
    "PCM = [[0 for i in range(cols)] for j in range(rows)]\n",
    "PCM[1][0] = 'A'\n",
    "PCM[2][0] = 'NA'\n",
    "PCM[3][0] = ''\n",
    "PCM[4][0] = '% Affirmed'\n",
    "PCM[5][0] = ''\n",
    "PCM[6][0] = ''\n",
    "PCM[0][1] = 'YYY'\n",
    "PCM[0][2] = 'YYN'\n",
    "PCM[0][3] = 'NNY'\n",
    "PCM[0][4] = 'NNN'\n",
    "PCM[0][5] = 'NN'\n",
    "PCM[0][6] = 'YY'\n",
    "PCM[0][7] = 'YN'\n",
    "\n",
    "k = 0\n",
    "numjudges = len(Judges) - 1 #b/c it's offset by 1, you need to make it one larger\n",
    "while k < len(data):\n",
    "    \n",
    "    num_Y_majority = 0\n",
    "    num_N_majority = 0\n",
    "\n",
    "    ji = 6\n",
    "    while ji < 9:\n",
    "\n",
    "        # all: if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Hughes' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn':\n",
    "        \n",
    "#         #prior patent experience\n",
    "#         if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn':\n",
    "#             num_Y_majority = num_Y_majority + 1\n",
    "#         #no prior background\n",
    "#         if data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes':\n",
    "#             num_N_majority = num_N_majority + 1\n",
    "        \n",
    "#         #technical background\n",
    "#         if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn':\n",
    "#             num_Y_majority = num_Y_majority + 1\n",
    "#         #no technical background\n",
    "#         if data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes' or data[k][ji] == 'Rader' or data[k][ji] == 'Taranto' or data[k][ji] == 'Dyk':\n",
    "#             num_N_majority = num_N_majority + 1\n",
    "\n",
    "        #observed pro P\n",
    "        if  data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Linn' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Moore' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman':\n",
    "            num_Y_majority = num_Y_majority + 1\n",
    "        #observed pro C \n",
    "        if  data[k][ji] == 'Lourie' or data[k][ji] == 'Dyk' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Hughes' or data[k][ji] == 'Plager' or data[k][ji] == 'Schall' or data[k][ji] == 'Mayer' or data[k][ji] == 'Clevenger':\n",
    "            num_N_majority = num_N_majority + 1\n",
    "        \n",
    "        ji = ji + 1\n",
    "\n",
    "    if (data[k][instance] == 'C' or data[k][instance] == 'P' or data[k][instance] == 'M') and data[k][19] == 'C' and data[k][18] == 'A' and data[k][5] == 'Rule 36' and data[k][11] != 'Dissenting' and data[k][13] != 'Dissenting' and data[k][11] != 'Both' and data[k][13] != 'Both': # and data[k][21] == 'P': #and data[k][5] == 'Rule 36':# and ( (int(data[k][0].strftime('%Y')) > 2015) or ( int(data[k][0].strftime('%Y')) == 2015 and int(data[k][0].strftime('%m')) > 6 ) ): #and data[k][21] == 'P' data[k][1] == 'PTO'\n",
    "        \n",
    "        if data[k][18] == 'A':\n",
    "            if num_Y_majority == 3:\n",
    "                PCM[1][1] = PCM[1][1] + 1\n",
    "\n",
    "            elif num_Y_majority == 2 and num_N_majority == 1:\n",
    "                PCM[1][2] = PCM[1][2] + 1\n",
    "\n",
    "            elif num_Y_majority == 1 and num_N_majority == 2:\n",
    "                PCM[1][3] = PCM[1][3] + 1\n",
    "\n",
    "            elif num_N_majority == 3:\n",
    "                PCM[1][4] = PCM[1][4] + 1\n",
    "\n",
    "            elif num_Y_majority == 0 and num_N_majority == 2:\n",
    "                PCM[1][5] = PCM[1][5] + 1\n",
    "\n",
    "            elif num_Y_majority == 2 and num_N_majority == 0:\n",
    "                PCM[1][6] = PCM[1][6] + 1\n",
    "\n",
    "            elif num_Y_majority == 1 and num_N_majority == 1:\n",
    "                PCM[1][7] = PCM[1][7] + 1\n",
    "\n",
    "            else:\n",
    "                print('error')\n",
    "                print(k)\n",
    "        else:\n",
    "            if num_Y_majority == 3:\n",
    "                PCM[2][1] = PCM[2][1] + 1\n",
    "            elif num_Y_majority == 2 and num_N_majority == 1:\n",
    "                PCM[2][2] = PCM[2][2] + 1\n",
    "            elif num_Y_majority == 1 and num_N_majority == 2:\n",
    "                PCM[2][3] = PCM[2][3] + 1\n",
    "            elif num_N_majority == 3:\n",
    "                PCM[2][4] = PCM[2][4] + 1\n",
    "            elif num_Y_majority == 0 and num_N_majority == 2:\n",
    "                PCM[2][5] = PCM[2][5] + 1\n",
    "            elif num_Y_majority == 2 and num_N_majority == 0:\n",
    "                PCM[2][6] = PCM[2][6] + 1\n",
    "            elif num_Y_majority == 1 and num_N_majority == 1:\n",
    "                PCM[2][7] = PCM[2][7] + 1\n",
    "            else:\n",
    "                print('error')\n",
    "                print(k)\n",
    "    \n",
    "    k = k + 1\n",
    "       \n",
    "\n",
    "k = 1\n",
    "while k < 8:\n",
    "    if (PCM[1][k]+PCM[2][k]+PCM[3][k]) != 0:    \n",
    "        PCM[4][k] = PCM[1][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "        PCM[5][k] = PCM[2][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "        PCM[6][k] = PCM[3][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "    k = k + 1\n",
    "\n",
    "df = pd.DataFrame(PCM).T\n",
    "#df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//Prior Patent Experience//Prior Patent Experience less granular \" + str(instance)+namestring+\" .xlsx\")\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//FINAL Regression Results//Affirmance//observed differences//\" +str(instance)+namestring+\" .xlsx\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "#comparing general VALIDITY rulings based on patent experience, less granular\n",
    "\n",
    "namevar = 'tech background'\n",
    "\n",
    "Judges = ['', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Total']\n",
    "\n",
    "Affiliations = ['', 'D', 'D', 'D', 'R', 'D','D','R','D','R','D','R','R','R','D','R','D','R', 'D','R','D','D','D']\n",
    "\n",
    "rows, cols = 7, 8\n",
    "PCM = [[0 for i in range(cols)] for j in range(rows)]\n",
    "PCM[1][0] = 'P'\n",
    "PCM[2][0] = 'C'\n",
    "PCM[3][0] = 'M'\n",
    "PCM[4][0] = '% P'\n",
    "PCM[5][0] = '% C'\n",
    "PCM[6][0] = '% M'\n",
    "PCM[0][1] = 'YYY'\n",
    "PCM[0][2] = 'YYN'\n",
    "PCM[0][3] = 'NNY'\n",
    "PCM[0][4] = 'NNN'\n",
    "PCM[0][5] = 'NN'\n",
    "PCM[0][6] = 'YY'\n",
    "PCM[0][7] = 'YN'\n",
    "\n",
    "k = 0\n",
    "numjudges = len(Judges) - 1 #b/c it's offset by 1, you need to make it one larger\n",
    "while k < len(data):\n",
    "    \n",
    "    num_Y_majority = 0\n",
    "    num_N_majority = 0\n",
    "\n",
    "    ji = 6\n",
    "    while ji < 9:\n",
    "\n",
    "        # all: if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Hughes' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn':\n",
    "        \n",
    "#         #prior patent experience\n",
    "#         if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn':\n",
    "#             num_Y_majority = num_Y_majority + 1\n",
    "#         #no prior background\n",
    "#         if data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes':\n",
    "#             num_N_majority = num_N_majority + 1\n",
    "        \n",
    "        #technical background\n",
    "        if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn':\n",
    "            num_Y_majority = num_Y_majority + 1\n",
    "        #no technical background\n",
    "        if data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes' or data[k][ji] == 'Rader' or data[k][ji] == 'Taranto' or data[k][ji] == 'Dyk':\n",
    "            num_N_majority = num_N_majority + 1\n",
    "\n",
    "\n",
    "        ji = ji + 1\n",
    "\n",
    "    \n",
    "    \n",
    "    if (data[k][24] == 'M' or data[k][25] == 'M' or data[k][26] == 'M'):\n",
    "        if num_Y_majority == 3:\n",
    "            PCM[3][1] = PCM[3][1] + 1\n",
    "            \n",
    "        elif num_Y_majority == 2 and num_N_majority == 1:\n",
    "            PCM[3][2] = PCM[3][2] + 1\n",
    "            \n",
    "        elif num_Y_majority == 1 and num_N_majority == 2:\n",
    "            PCM[3][3] = PCM[3][3] + 1\n",
    "            \n",
    "        elif num_N_majority == 3:\n",
    "            PCM[3][4] = PCM[3][4] + 1\n",
    "            \n",
    "        elif num_Y_majority == 0 and num_N_majority == 2:\n",
    "            PCM[3][5] = PCM[3][5] + 1\n",
    "            \n",
    "        elif num_Y_majority == 2 and num_N_majority == 0:\n",
    "            PCM[3][6] = PCM[3][6] + 1\n",
    "            \n",
    "        elif num_Y_majority == 1 and num_N_majority == 1:\n",
    "            PCM[3][7] = PCM[3][7] + 1\n",
    "           \n",
    "        else:\n",
    "            print('error')\n",
    "            print('is where the error is')\n",
    "    elif ((data[k][24] == 'P' or data[k][25] == 'P' or data[k][26] == 'P') and (data[k][24] == 'C' or data[k][25] == 'C' or data[k][26] == 'C')):\n",
    "        \n",
    "        if num_Y_majority == 3:\n",
    "            PCM[3][1] = PCM[3][1] + 1\n",
    "           \n",
    "        elif num_Y_majority == 2 and num_N_majority == 1:\n",
    "            PCM[3][2] = PCM[3][2] + 1\n",
    "           \n",
    "        elif num_Y_majority == 1 and num_N_majority == 2:\n",
    "            PCM[3][3] = PCM[3][3] + 1\n",
    "            \n",
    "        elif num_N_majority == 3:\n",
    "            PCM[3][4] = PCM[3][4] + 1\n",
    "          \n",
    "        elif num_Y_majority == 0 and num_N_majority == 2:\n",
    "            PCM[3][5] = PCM[3][5] + 1\n",
    "           \n",
    "        elif num_Y_majority == 2 and num_N_majority == 0:\n",
    "            PCM[3][6] = PCM[3][6] + 1\n",
    "            \n",
    "        elif num_Y_majority == 1 and num_N_majority == 1:\n",
    "            PCM[3][7] = PCM[3][7] + 1\n",
    "            \n",
    "        else:\n",
    "            print('error')\n",
    "            print('is where the error is')\n",
    "    elif (data[k][24] == 'P' or data[k][25] == 'P' or data[k][26] == 'P'):\n",
    "        \n",
    "        if num_Y_majority == 3:\n",
    "            PCM[1][1] = PCM[1][1] + 1\n",
    "            \n",
    "        elif num_Y_majority == 2 and num_N_majority == 1:\n",
    "            PCM[1][2] = PCM[1][2] + 1\n",
    "           \n",
    "        elif num_Y_majority == 1 and num_N_majority == 2:\n",
    "            PCM[1][3] = PCM[1][3] + 1\n",
    "            \n",
    "        elif num_N_majority == 3:\n",
    "            PCM[1][4] = PCM[1][4] + 1\n",
    "            \n",
    "        elif num_Y_majority == 0 and num_N_majority == 2:\n",
    "            PCM[1][5] = PCM[1][5] + 1\n",
    "            \n",
    "        elif num_Y_majority == 2 and num_N_majority == 0:\n",
    "            PCM[1][6] = PCM[1][6] + 1\n",
    "           \n",
    "        elif num_Y_majority == 1 and num_N_majority == 1:\n",
    "            PCM[1][7] = PCM[1][7] + 1\n",
    "           \n",
    "        else:\n",
    "            print('error')\n",
    "            print('is where the error is')\n",
    "    elif (data[k][24] == 'C' or data[k][25] == 'C' or data[k][26] == 'C'):\n",
    "        \n",
    "        if num_Y_majority == 3:\n",
    "            PCM[2][1] = PCM[2][1] + 1\n",
    "            \n",
    "        elif num_Y_majority == 2 and num_N_majority == 1:\n",
    "            PCM[2][2] = PCM[2][2] + 1\n",
    "            \n",
    "        elif num_Y_majority == 1 and num_N_majority == 2:\n",
    "            PCM[2][3] = PCM[2][3] + 1\n",
    "            \n",
    "        elif num_N_majority == 3:\n",
    "            PCM[2][4] = PCM[2][4] + 1\n",
    "            \n",
    "        elif num_Y_majority == 0 and num_N_majority == 2:\n",
    "            PCM[2][5] = PCM[2][5] + 1\n",
    "           \n",
    "        elif num_Y_majority == 2 and num_N_majority == 0:\n",
    "            PCM[2][6] = PCM[2][6] + 1\n",
    "           \n",
    "        elif num_Y_majority == 1 and num_N_majority == 1:\n",
    "            PCM[2][7] = PCM[2][7] + 1\n",
    "\n",
    "        else:\n",
    "            print('error')\n",
    "            print('is where the error is')\n",
    "    \n",
    "    k = k + 1   \n",
    "\n",
    "k = 1\n",
    "while k < 8:\n",
    "    if (PCM[1][k]+PCM[2][k]+PCM[3][k]) != 0:    \n",
    "        PCM[4][k] = PCM[1][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "        PCM[5][k] = PCM[2][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "        PCM[6][k] = PCM[3][k]/(PCM[1][k]+PCM[2][k]+PCM[3][k])\n",
    "    k = k + 1\n",
    "\n",
    "df = pd.DataFrame(PCM).T\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//Prior Patent Experience//\"+namevar+\" less granular VALIDITY.xlsx\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "numPerCuriam\n",
      "4\n"
     ]
    }
   ],
   "source": [
    "#author data based on P C M\n",
    "#Just run it once for P, once for C, and once for M by changing outcome field below\n",
    "\n",
    "#how often judges write opinions\n",
    "Judges = ['', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn']  \n",
    "rows, cols = 13, len(Judges)\n",
    "PCM = [[0 for i in range(cols)] for j in range(rows)]\n",
    "PCM[0] = Judges\n",
    "PCM[1][0] = 'Num Prec'\n",
    "PCM[2][0] = 'Num Prec Write'\n",
    "PCM[3][0] = '% Prec Write'\n",
    "PCM[4][0] = 'Num Nonprec'\n",
    "PCM[5][0] = 'Num Nonprec Write'\n",
    "PCM[6][0] = '% Nonprec Write'\n",
    "PCM[7][0] = 'Num R36'\n",
    "PCM[8][0] = '% Prec'\n",
    "PCM[9][0] = '% Nonprec'\n",
    "PCM[10][0] = '% R36'\n",
    "PCM[11][0] = 'num percuriam prec'\n",
    "PCM[12][0] = 'num percuriam nonprec'\n",
    "\n",
    "\n",
    "numPerCuriam = 0\n",
    "\n",
    "k = 0\n",
    "numjudges = 23 #b/c it's offset now\n",
    "\n",
    "outcome = 'M'\n",
    "\n",
    "while k < len(data):\n",
    "    \n",
    "    if data[k][19] == outcome: #if data[k][19] == outcome: #if not using outcome, then replace with if data[k][19] == 'P' or data[k][19] == 'C' or data[k][19] == 'M':\n",
    "        if data[k][3] == 'Precedential':\n",
    "            ji = 1\n",
    "            while ji < numjudges:\n",
    "                if ((data[k][7] == Judges[ji]) or (data[k][8] == Judges[ji]) or (data[k][6] == Judges[ji])):\n",
    "                    \n",
    "                    if ((data[k][11] == 'Both' or data[k][11] == 'Dissenting') and data[k][12] == Judges[ji]) or ((data[k][13] == 'Both' or data[k][13] == 'Dissenting') and data[k][14] == Judges[ji]):\n",
    "                        throwaway = 1\n",
    "                    else:\n",
    "                        PCM[1][ji] = PCM[1][ji] + 1\n",
    "                    if (data[k][10] == Judges[ji]):\n",
    "                        PCM[2][ji] = PCM[2][ji] + 1\n",
    "                ji = ji + 1\n",
    "            if data[k][10] == 'Per Curiam':\n",
    "                numPerCuriam = numPerCuriam + 1\n",
    "                ji = 1\n",
    "                while ji < numjudges:\n",
    "                    if ((data[k][7] == Judges[ji]) or (data[k][8] == Judges[ji]) or (data[k][6] == Judges[ji])):\n",
    "                        PCM[11][ji] = PCM[11][ji] + 1\n",
    "                    ji = ji + 1\n",
    "        elif data[k][5] == 'Opinion':\n",
    "            ji = 1\n",
    "            while ji < numjudges:\n",
    "                if ((data[k][7] == Judges[ji]) or (data[k][8] == Judges[ji]) or (data[k][6] == Judges[ji])):\n",
    "                    \n",
    "                    if ((data[k][11] == 'Both' or data[k][11] == 'Dissenting') and data[k][12] == Judges[ji]) or ((data[k][13] == 'Both' or data[k][13] == 'Dissenting') and data[k][14] == Judges[ji]):\n",
    "                        throwaway = 1\n",
    "                    else:\n",
    "                        PCM[4][ji] = PCM[4][ji] + 1\n",
    "                    if (data[k][10] == Judges[ji]):\n",
    "                        PCM[5][ji] = PCM[5][ji] + 1\n",
    "                ji = ji + 1\n",
    "            if data[k][10] == 'Per Curiam':\n",
    "                numPerCuriam = numPerCuriam + 1\n",
    "                ji = 1\n",
    "                while ji < numjudges:\n",
    "                    if ((data[k][7] == Judges[ji]) or (data[k][8] == Judges[ji]) or (data[k][6] == Judges[ji])):\n",
    "                        PCM[12][ji] = PCM[12][ji] + 1\n",
    "                    ji = ji + 1\n",
    "        else:\n",
    "            ji = 1\n",
    "            while ji < numjudges:\n",
    "                if ((data[k][7] == Judges[ji]) or (data[k][8] == Judges[ji]) or (data[k][6] == Judges[ji])):\n",
    "                    PCM[7][ji] = PCM[7][ji] + 1\n",
    "                ji = ji + 1\n",
    "    \n",
    "    k = k + 1\n",
    "\n",
    "k = 1\n",
    "while k < len(Judges):\n",
    "    if PCM[1][k] != 0:\n",
    "        PCM[3][k] = PCM[2][k]/PCM[1][k]\n",
    "    if PCM[4][k] != 0:\n",
    "        PCM[6][k] = PCM[5][k]/PCM[4][k]\n",
    "    if (PCM[1][k]+PCM[4][k]+PCM[7][k]) != 0:\n",
    "        PCM[8][k] = PCM[1][k]/(PCM[1][k]+PCM[4][k]+PCM[7][k])\n",
    "        PCM[9][k] = PCM[4][k]/(PCM[1][k]+PCM[4][k]+PCM[7][k])\n",
    "        PCM[10][k] = PCM[7][k]/(PCM[1][k]+PCM[4][k]+PCM[7][k])\n",
    "    k = k + 1\n",
    "\n",
    "print('numPerCuriam')\n",
    "print(numPerCuriam)\n",
    "df = pd.DataFrame(PCM).T\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//authordataPCM_\"+outcome+\".xlsx\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "#create new dataset that's ready for doing regression analysis, for whatever you want (case level, vote level is below)\n",
    "#fixed to include the vars for favorability of district court ruling\n",
    "#here\n",
    "#this works right\n",
    "\n",
    "#don't forget you need to reorder everything by panel once you have excel document... You also need to remove the couple dozen or so rows at the end that are all 0s\n",
    "\n",
    "columns = ['outcome P', 'outcome C', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'PTO', 'DCT_P', 'DCT_C', '1plusTB', '2plusTB', '3TB', '1plusPB', '2plusPB', '3PB', '1plusR', '2plusR', '3R', '1plusEBP', '2plusEBP', '3EBP', '1plusDP', '2plusDP', '3DP', 'numTB', 'numPB', 'numR', 'numEBP', 'numDP', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021', '1TB', '2TB', '1PB', '2PB', '1R', '2R', '1EBP', '2EBP', '1DP', '2DP', '1plusDPNN', '2plusDPNN', '3DPNN', '1DPNN','2DPNN', '1plusCHEAT', '2plusCHEAT', '3CHEAT', '1CHEAT','2CHEAT', 'numDPNN', 'numCHEAT', 'author_EB', 'outcome P val', 'outcome C val', 'numPobserved', '1plusPOb', '2plusPOb', '3POb', 'judgeid', 'panelid', 'Precedential', 'R36', 'Affirmed']\n",
    "numJudges = 22\n",
    "filename = 'Chen C' ##Chen currently listed as pro-challenger, change below if desired\n",
    "testingauthorship = False #this is so you don't worry about number of judges\n",
    "judgeids = ['Stoll', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Clevenger', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Rader']\n",
    "\n",
    "\n",
    "rows, cols = len(data)+1, len(columns)\n",
    "regressionvars = [[0 for i in range(rows)] for j in range(cols)]\n",
    "instance = 19 #19 for everything, 24 for obviousness, 25 for PSM, 26 for other validity\n",
    "\n",
    "i = 0\n",
    "while i < cols:\n",
    "    regressionvars[i][0] = columns[i]\n",
    "    i = i + 1\n",
    "\n",
    "i = 0\n",
    "k = 0\n",
    "numbercases = 0\n",
    "while i < len(data):\n",
    "    \n",
    "    if (data[i][instance] == 'P' or data[i][instance] == 'C' or data[i][instance] == 'M') and data[i][10] != \"Fogel\" and data[i][10] != \"Gilstrap\" and data[i][10] != \"Stark\":  #and ( (int(data[i][0].strftime('%Y')) > 2015) or (int(data[i][0].strftime('%Y')) == 2015 and int(data[i][0].strftime('%m')) > 6) ): # and ((data[i][24] == 'P' or data[i][24] == 'C' or data[i][24] == 'M') or (data[i][25] == 'P' or data[i][25] == 'C' or data[i][25] == 'M') or (data[i][26] == 'P' or data[i][26] == 'C' or data[i][26] == 'M')):   # and ((data[i][24] == 'P' or data[i][24] == 'C' or data[i][24] == 'M') or (data[i][25] == 'P' or data[i][25] == 'C' or data[i][25] == 'M') or (data[i][26] == 'P' or data[i][26] == 'C' or data[i][26] == 'M')):  #and ( (int(data[i][0].strftime('%Y')) > 2015) or (int(data[i][0].strftime('%Y')) == 2015 and int(data[i][0].strftime('%m')) > 6) ): #and ((data[i][24] == 'P' or data[i][24] == 'C' or data[i][24] == 'M') or (data[i][25] == 'P' or data[i][25] == 'C' or data[i][25] == 'M') or (data[i][26] == 'P' or data[i][26] == 'C' or data[i][26] == 'M')): #and (data[i][5] == 'Opinion') and (data[i][10] != \"Per Curiam\" and data[i][10] != \"Per Curiam\" and data[i][10] != \"Fogel\" and data[i][10] != \"Gilstrap\" and data[i][10] != \"Stark\")): #and data[i][5] == 'Rule 36': # # and data[i][5] == 'Rule 36': #and data[i][1] == 'PTO': #need to make sure it was an actual decision we are coding for\n",
    "        \n",
    "        numbercases = numbercases + 1\n",
    "        \n",
    "        num_Y_TB_majority = 0\n",
    "        num_N_TB_majority = 0\n",
    "        num_Y_PB_majority = 0\n",
    "        num_N_PB_majority = 0\n",
    "        num_Y_R_majority = 0\n",
    "        num_N_R_majority = 0\n",
    "        num_Y_EBP_majority = 0\n",
    "        num_N_EBP_majority = 0\n",
    "        num_Y_DP_majority = 0\n",
    "        num_N_DP_majority = 0\n",
    "        num_Y_DPNN_majority = 0\n",
    "        num_N_DPNN_majority = 0\n",
    "        num_Y_CHEAT_majority = 0\n",
    "        num_N_CHEAT_majority = 0\n",
    "        num_P_OB = 0\n",
    "        num_C_OB = 0\n",
    "\n",
    "        ji = 6\n",
    "        while ji < 9:\n",
    "\n",
    "            temp = k\n",
    "            k = i\n",
    "            \n",
    "            #data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes':\n",
    "               \n",
    "            \n",
    "            #prior patent experience\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn':\n",
    "                num_Y_PB_majority = num_Y_PB_majority + 1\n",
    "            #no prior background\n",
    "            if data[k][ji] == 'Schall' or data[k][ji] == 'Reyna' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes':\n",
    "                num_N_PB_majority = num_N_PB_majority + 1\n",
    "\n",
    "            #technical background\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn':\n",
    "                num_Y_TB_majority = num_Y_TB_majority + 1\n",
    "            #no technical background\n",
    "            if data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes' or data[k][ji] == 'Rader' or data[k][ji] == 'Taranto' or data[k][ji] == 'Dyk':\n",
    "                num_N_TB_majority = num_N_TB_majority + 1\n",
    "\n",
    "            #democrat\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Taranto' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Hughes':\n",
    "                num_N_R_majority = num_N_R_majority + 1\n",
    "            #republican\n",
    "            if data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Newman' or data[k][ji] == 'Schall' or data[k][ji] == 'Prost' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer':\n",
    "                num_Y_R_majority = num_Y_R_majority + 1\n",
    "            \n",
    "            \n",
    "            #observed pro P\n",
    "            if  data[k][ji] == 'Stoll' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Moore' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn':\n",
    "                num_P_OB = num_P_OB + 1\n",
    "            #observed pro C \n",
    "            if  data[k][ji] == 'Dyk' or data[k][ji] == 'Chen' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Hughes' or data[k][ji] == 'Mayer' or data[k][ji] == 'Lourie' or data[k][ji] == 'Plager' or data[k][ji] == 'Schall' or data[k][ji] == 'Clevenger':\n",
    "                num_C_OB = num_C_OB + 1\n",
    "            \n",
    "            k = temp\n",
    "            ji = ji + 1\n",
    "        \n",
    "        \n",
    "        if ((num_P_OB + num_C_OB) == 3) or testingauthorship == True:\n",
    "\n",
    "            #increment counter for the actual data\n",
    "            k = k + 1 #want it to be 1 for first iteration b/c we have a header\n",
    "\n",
    "            #start with the independent variable\n",
    "            if data[i][instance] == 'P':\n",
    "                regressionvars[0][k] = 1\n",
    "            elif data[i][instance] == 'C':\n",
    "                regressionvars[1][k] = 1\n",
    "\n",
    "            #move to dependent variables at the end\n",
    "            if data[i][21] == 'P':\n",
    "                regressionvars[25][k] = 1\n",
    "            elif data[i][21] == 'C':\n",
    "                regressionvars[26][k] = 1\n",
    "            if (data[i][1] == 'PTO'):\n",
    "                regressionvars[24][k] = 1\n",
    "            \n",
    "            \n",
    "            if (data[i][3] == 'Precedential'):\n",
    "                regressionvars[86][k] = 1\n",
    "            elif (data[i][5] == 'Rule 36'):\n",
    "                regressionvars[87][k] = 1\n",
    "            \n",
    "            if data[i][18] == 'A':\n",
    "                regressionvars[88][k] = 1\n",
    "            \n",
    "            if num_Y_TB_majority == 3:\n",
    "                regressionvars[27][k] = 1\n",
    "                regressionvars[28][k] = 1\n",
    "                regressionvars[29][k] = 1\n",
    "            elif num_Y_TB_majority == 2:\n",
    "                regressionvars[27][k] = 1\n",
    "                regressionvars[28][k] = 1\n",
    "                regressionvars[56][k] = 1\n",
    "            elif num_Y_TB_majority == 1:\n",
    "                regressionvars[27][k] = 1\n",
    "                regressionvars[55][k] = 1\n",
    "            \n",
    "            if num_Y_PB_majority == 3:\n",
    "                regressionvars[30][k] = 1\n",
    "                regressionvars[31][k] = 1\n",
    "                regressionvars[32][k] = 1\n",
    "            elif num_Y_PB_majority == 2:\n",
    "                regressionvars[30][k] = 1\n",
    "                regressionvars[31][k] = 1\n",
    "                regressionvars[58][k] = 1\n",
    "            elif num_Y_PB_majority == 1:\n",
    "                regressionvars[30][k] = 1\n",
    "                regressionvars[57][k] = 1\n",
    "            \n",
    "            if num_Y_R_majority == 3:\n",
    "                regressionvars[33][k] = 1\n",
    "                regressionvars[34][k] = 1\n",
    "                regressionvars[35][k] = 1\n",
    "            elif num_Y_R_majority == 2:\n",
    "                regressionvars[33][k] = 1\n",
    "                regressionvars[34][k] = 1\n",
    "                regressionvars[60][k] = 1\n",
    "            elif num_Y_R_majority == 1:\n",
    "                regressionvars[33][k] = 1\n",
    "                regressionvars[59][k] = 1\n",
    "                \n",
    "            if num_Y_EBP_majority == 3:\n",
    "                regressionvars[36][k] = 1\n",
    "                regressionvars[37][k] = 1\n",
    "                regressionvars[38][k] = 1\n",
    "            elif num_Y_EBP_majority == 2:\n",
    "                regressionvars[36][k] = 1\n",
    "                regressionvars[37][k] = 1\n",
    "                regressionvars[62][k] = 1\n",
    "            elif num_Y_EBP_majority == 1:\n",
    "                regressionvars[36][k] = 1\n",
    "                regressionvars[61][k] = 1\n",
    "                \n",
    "            if num_Y_DP_majority == 3:\n",
    "                regressionvars[39][k] = 1\n",
    "                regressionvars[40][k] = 1\n",
    "                regressionvars[41][k] = 1\n",
    "            elif num_Y_DP_majority == 2:\n",
    "                regressionvars[39][k] = 1\n",
    "                regressionvars[40][k] = 1\n",
    "                regressionvars[64][k] = 1\n",
    "            elif num_Y_DP_majority == 1:\n",
    "                regressionvars[39][k] = 1\n",
    "                regressionvars[63][k] = 1\n",
    "            \n",
    "            if num_Y_DPNN_majority == 3:\n",
    "                regressionvars[65][k] = 1\n",
    "                regressionvars[66][k] = 1\n",
    "                regressionvars[67][k] = 1\n",
    "            elif num_Y_DPNN_majority == 2:\n",
    "                regressionvars[65][k] = 1\n",
    "                regressionvars[66][k] = 1\n",
    "                regressionvars[69][k] = 1\n",
    "            elif num_Y_DPNN_majority == 1:\n",
    "                regressionvars[65][k] = 1\n",
    "                regressionvars[68][k] = 1\n",
    "            \n",
    "            if num_Y_CHEAT_majority == 3:\n",
    "                regressionvars[70][k] = 1\n",
    "                regressionvars[71][k] = 1\n",
    "                regressionvars[72][k] = 1\n",
    "            elif num_Y_CHEAT_majority == 2:\n",
    "                regressionvars[70][k] = 1\n",
    "                regressionvars[71][k] = 1\n",
    "                regressionvars[74][k] = 1\n",
    "            elif num_Y_CHEAT_majority == 1:\n",
    "                regressionvars[70][k] = 1\n",
    "                regressionvars[73][k] = 1\n",
    "            \n",
    "            if num_P_OB == 3:\n",
    "                regressionvars[81][k] = 1\n",
    "                regressionvars[82][k] = 1\n",
    "                regressionvars[83][k] = 1\n",
    "            elif num_P_OB == 2:\n",
    "                regressionvars[81][k] = 1\n",
    "                regressionvars[82][k] = 1\n",
    "            elif num_P_OB == 1:\n",
    "                regressionvars[81][k] = 1\n",
    "                \n",
    "            \n",
    "            \n",
    "            regressionvars[42][k] = num_Y_TB_majority\n",
    "            regressionvars[43][k] = num_Y_PB_majority\n",
    "            regressionvars[44][k] = num_Y_R_majority\n",
    "            regressionvars[45][k] = num_Y_EBP_majority\n",
    "            regressionvars[46][k] = num_Y_DP_majority\n",
    "            regressionvars[75][k] = num_Y_DPNN_majority\n",
    "            regressionvars[76][k] = num_Y_CHEAT_majority\n",
    "            regressionvars[80][k] = num_P_OB\n",
    "            \n",
    "            ji = 10 #author instance, don't use unless you're going to look only at cases with an author ... \n",
    "            temp = k\n",
    "            k = i\n",
    "            #observed voting pro P\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Linn' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Moore' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman':\n",
    "                regressionvars[77][temp] = 1\n",
    "            #observed voting pro C \n",
    "            if data[k][ji] == 'Lourie' or  data[k][ji] == 'Dyk' or data[k][ji] == 'Schall' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Plager' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes' or data[k][ji] == 'Clevenger':\n",
    "                regressionvars[77][temp] = 0\n",
    "            k = temp\n",
    "            \n",
    "            ji = 0\n",
    "            while ji < len(judgeids):\n",
    "                if data[i][10] == judgeids[ji]:\n",
    "                    regressionvars[84][k] = ji + 1\n",
    "                ji = ji + 1\n",
    "            \n",
    "            \n",
    "            if int(data[i][0].strftime('%Y')) == 2014:\n",
    "                regressionvars[47][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2015:\n",
    "                regressionvars[48][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2016:\n",
    "                regressionvars[49][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2017:\n",
    "                regressionvars[50][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2018:\n",
    "                regressionvars[51][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2019:\n",
    "                regressionvars[52][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2020:\n",
    "                regressionvars[53][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2021:\n",
    "                regressionvars[54][k] = 1\n",
    "        \n",
    "            #outcomes in validity cases, this does not work!!!!!\n",
    "            #start with the independent variable\n",
    "            if data[i][24] == 'M' or data[i][25] == 'M' or data[i][26] == 'M':\n",
    "                regressionvars[78][k] = 0\n",
    "                regressionvars[79][k] = 0\n",
    "            elif ( (data[i][24] == 'P' or data[i][25] == 'P' or data[i][26] == 'P') and (data[i][24] == 'C' or data[i][25] == 'C' or data[i][26] == 'C') ):\n",
    "                regressionvars[78][k] = 0\n",
    "                regressionvars[79][k] = 0\n",
    "            elif (data[i][24] == 'P' or data[i][25] == 'P' or data[i][26] == 'P'):\n",
    "                regressionvars[78][k] = 1\n",
    "                regressionvars[79][k] = 0\n",
    "            elif (data[i][24] == 'C' or data[i][25] == 'C' or data[i][26] == 'C'):\n",
    "                regressionvars[78][k] = 0\n",
    "                regressionvars[79][k] = 1\n",
    "    \n",
    "    \n",
    "            #move to judge independent variables\n",
    "            j = 2\n",
    "            while j < numJudges + 2:\n",
    "                if ( (data[i][7] == regressionvars[j][0]) or (data[i][8] == regressionvars[j][0]) or (data[i][6] == regressionvars[j][0]) ):\n",
    "                    regressionvars[j][k] = 1\n",
    "                j = j + 1   \n",
    "    \n",
    "    i = i + 1\n",
    "\n",
    "\n",
    "    \n",
    "    \n",
    "i = 1\n",
    "k = 1\n",
    "while i < len(regressionvars[0]):\n",
    "    \n",
    "    #hasn't been identified\n",
    "    if regressionvars[85][i] == 0:\n",
    "        regressionvars[85][i] = k #give it the next index\n",
    "        \n",
    "        #identify the judges\n",
    "        panelids = [0,0,0]\n",
    "        index = 0\n",
    "        j = 2\n",
    "        while j < numJudges + 2:\n",
    "            if regressionvars[j][i] == 1:\n",
    "                panelids[index] = j\n",
    "                index = index + 1\n",
    "            j = j + 1\n",
    "        \n",
    "        #identify cases with same panel and, if so, give them same index\n",
    "        j = i\n",
    "        while j < len(regressionvars[0]):\n",
    "            \n",
    "            if regressionvars[panelids[0]][j] == 1 and regressionvars[panelids[1]][j] == 1 and regressionvars[panelids[2]][j] == 1:\n",
    "                regressionvars[85][j] = k\n",
    "            \n",
    "            j = j + 1\n",
    "        \n",
    "        k = k + 1 #add one to the index for next go around\n",
    "    \n",
    "    i = i + 1   \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "df = pd.DataFrame(regressionvars).T\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//FINAL Regression Results//\"+filename+\" vars.xlsx\")\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "    \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "#create new dataset that's ready for doing regression analysis, for whatever you want\n",
    "#this is for having one data point per VOTE\n",
    "\n",
    "columns = ['outcome P', 'outcome C', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'PTO', 'DCT_P', 'DCT_C', '1plusTB', '2plusTB', '3TB', '1plusPB', '2plusPB', '3PB', '1plusR', '2plusR', '3R', '1plusEBP', '2plusEBP', '3EBP', '1plusDP', '2plusDP', '3DP', 'numTB', 'numPB', 'numR', 'numEBP', 'numDP', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021', '1TB', '2TB', '1PB', '2PB', '1R', '2R', '1EBP', '2EBP', '1DP', '2DP', '1plusDPNN', '2plusDPNN', '3DPNN', '1DPNN','2DPNN', '1plusCHEAT', '2plusCHEAT', '3CHEAT', '1CHEAT','2CHEAT', 'numDPNN', 'numCHEAT', 'author_EB', 'outcome P val', 'outcome C val', 'numPobserved', '1plusPOb', '2plusPOb', '3POb','caseid', 'judgeid', 'numotherPOb','1plusotherPOb','2otherPOb','judge ideology', 'numotherTB','1plusotherTB','2otherTB','judge TB', 'numotherPB','1plusotherPB','2otherPB','judge PB', 'numotherR','1plusotherR','2otherR','judge R', 'StollV', 'ChenV', 'SchallV', \"O'MalleyV\", 'ReynaV', 'ProstV', 'BrysonV', 'WallachV', 'PlagerV', 'MooreV', 'LourieV', 'ClevengerV', 'MayerV', 'TarantoV', 'NewmanV', 'HughesV', 'DykV', 'LinnV', 'RaderV']\n",
    "judgeids = ['Stoll', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Clevenger', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Rader']\n",
    "numJudges = 22\n",
    "filename = 'votes Clevenger P' \n",
    "#filefolder = 'Vote level observed classification testing'\n",
    "\n",
    "rows, cols = (len(data)+1)*3, len(columns)\n",
    "regressionvars = [[0 for i in range(rows)] for j in range(cols)]\n",
    "instance = 19 #19 for everything, 24 for obviousness, 25 for PSM, 26 for other validity\n",
    "dissentinstance = 29 #29 for everything,31 32 33\n",
    "\n",
    "i = 0\n",
    "while i < cols:\n",
    "    regressionvars[i][0] = columns[i]\n",
    "    i = i + 1\n",
    "\n",
    "i = 0\n",
    "k = 0\n",
    "numcases = 0\n",
    "while i < len(data):\n",
    "    \n",
    "    if (data[i][instance] == 'P' or data[i][instance] == 'C' or data[i][instance] == 'M'):# and data[i][3] == 'Nonprecedential' and data[i][5] == 'Opinion':# and ( (int(data[i][0].strftime('%Y')) > 2015) or (int(data[i][0].strftime('%Y')) == 2015 and int(data[i][0].strftime('%m')) > 6) ): # and ((data[i][24] == 'P' or data[i][24] == 'C' or data[i][24] == 'M') or (data[i][25] == 'P' or data[i][25] == 'C' or data[i][25] == 'M') or (data[i][26] == 'P' or data[i][26] == 'C' or data[i][26] == 'M')): #  #and ((data[i][24] == 'P' or data[i][24] == 'C' or data[i][24] == 'M') or (data[i][25] == 'P' or data[i][25] == 'C' or data[i][25] == 'M') or (data[i][26] == 'P' or data[i][26] == 'C' or data[i][26] == 'M')): #and (data[i][5] == 'Opinion') and (data[i][10] != \"Per Curiam\" and data[i][10] != \"Per Curiam\" and data[i][10] != \"Fogel\" and data[i][10] != \"Gilstrap\" and data[i][10] != \"Stark\")): #and data[i][5] == 'Rule 36': # # and data[i][5] == 'Rule 36': #and data[i][1] == 'PTO': #need to make sure it was an actual decision we are coding for\n",
    "    \n",
    "        \n",
    "        \n",
    "        num_Y_TB_majority = 0\n",
    "        num_N_TB_majority = 0\n",
    "        num_Y_PB_majority = 0\n",
    "        num_N_PB_majority = 0\n",
    "        num_Y_R_majority = 0\n",
    "        num_N_R_majority = 0\n",
    "        num_Y_EBP_majority = 0\n",
    "        num_N_EBP_majority = 0\n",
    "        num_Y_DP_majority = 0\n",
    "        num_N_DP_majority = 0\n",
    "        num_Y_DPNN_majority = 0\n",
    "        num_N_DPNN_majority = 0\n",
    "        num_Y_CHEAT_majority = 0\n",
    "        num_N_CHEAT_majority = 0\n",
    "        num_P_OB = 0\n",
    "        num_C_OB = 0\n",
    "\n",
    "        ji = 6\n",
    "        while ji < 9:\n",
    "\n",
    "            temp = k\n",
    "            k = i\n",
    "            \n",
    "            #data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes':\n",
    "               \n",
    "            \n",
    "            #prior patent experience\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn':\n",
    "                num_Y_PB_majority = num_Y_PB_majority + 1\n",
    "            #no prior background\n",
    "            if data[k][ji] == 'Schall' or data[k][ji] == 'Reyna' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes':\n",
    "                num_N_PB_majority = num_N_PB_majority + 1\n",
    "\n",
    "            #technical background\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn':\n",
    "                num_Y_TB_majority = num_Y_TB_majority + 1\n",
    "            #no technical background\n",
    "            if data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes' or data[k][ji] == 'Rader' or data[k][ji] == 'Taranto' or data[k][ji] == 'Dyk':\n",
    "                num_N_TB_majority = num_N_TB_majority + 1\n",
    "\n",
    "            #democrat\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Taranto' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Hughes':\n",
    "                num_N_R_majority = num_N_R_majority + 1\n",
    "            #republican\n",
    "            if data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Newman' or data[k][ji] == 'Schall' or data[k][ji] == 'Prost' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer':\n",
    "                num_Y_R_majority = num_Y_R_majority + 1\n",
    "            \n",
    "               \n",
    "            #en banc pro P\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Moore' or data[k][ji] == 'Mayer' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Plager' or data[k][ji] == 'Schall' or data[k][ji] == 'Clevenger':\n",
    "                num_Y_EBP_majority = num_Y_EBP_majority + 1\n",
    "            #en banc pro C \n",
    "            if data[k][ji] == 'Lourie' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Hughes':\n",
    "                num_N_EBP_majority = num_N_EBP_majority + 1\n",
    "            \n",
    "            #dissents pro P\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Plager':\n",
    "                num_Y_DP_majority = num_Y_DP_majority + 1\n",
    "            #dissents pro C \n",
    "            if data[k][ji] == 'Lourie' or  data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == 'Schall' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Hughes' or data[k][ji] == 'Moore' or data[k][ji] == 'Mayer':\n",
    "                num_N_DP_majority = num_N_DP_majority + 1\n",
    "            \n",
    "            #dissents pro P ignore Newman\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Plager' or data[k][ji] == 'Schall' or data[k][ji] == 'Moore':\n",
    "                num_Y_DPNN_majority = num_Y_DPNN_majority + 1\n",
    "            #dissents pro C ignore Newman\n",
    "            if data[k][ji] == 'Lourie' or  data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Hughes' or data[k][ji] == 'Mayer':\n",
    "                num_N_DPNN_majority = num_N_DPNN_majority + 1\n",
    "                \n",
    "            #en banc pro P CHEAT\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn' or data[k][ji] == 'Clevenger':\n",
    "                num_Y_CHEAT_majority = num_Y_CHEAT_majority + 1\n",
    "            #en banc pro C CHEAT\n",
    "            if data[k][ji] == 'Lourie' or  data[k][ji] == 'Dyk' or data[k][ji] == 'Schall' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Plager' or data[k][ji] == 'Hughes' or data[k][ji] == 'Wallach' or data[k][ji] == 'Mayer':\n",
    "                num_N_CHEAT_majority = num_N_CHEAT_majority + 1\n",
    "            \n",
    "            #observed pro P THERE ARE TWO SPOTS TO CHANGE NOW\n",
    "            if  data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Moore' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn' or data[k][ji] == 'Clevenger':\n",
    "                num_P_OB = num_P_OB + 1\n",
    "            #observed pro C THERE ARE TWO SPOTS TO CHANGE NOW\n",
    "            if    data[k][ji] == 'Dyk' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Hughes' or data[k][ji] == 'Plager' or data[k][ji] == 'Schall' or data[k][ji] == 'Mayer' or data[k][ji] == 'Lourie':\n",
    "                num_C_OB = num_C_OB + 1\n",
    "            \n",
    "            k = temp\n",
    "            ji = ji + 1\n",
    "        \n",
    "        \n",
    "        if ((num_Y_TB_majority + num_N_TB_majority + num_Y_PB_majority + num_N_PB_majority) == 6):\n",
    "            \n",
    "            if (num_Y_R_majority + num_N_R_majority + num_Y_EBP_majority + num_N_EBP_majority + num_Y_DP_majority + num_N_DP_majority + num_Y_TB_majority + num_N_TB_majority + num_Y_PB_majority + num_N_PB_majority + num_P_OB + num_C_OB != 18):\n",
    "                print(i)\n",
    "\n",
    "            #increment counter for the actual data\n",
    "            k = k + 1 #want it to be 1 for first iteration b/c we have a header\n",
    "            numcases = numcases + 1\n",
    "            \n",
    "            #first set case var\n",
    "            regressionvars[84][k] = numcases\n",
    "            regressionvars[84][k+1] = numcases\n",
    "            regressionvars[84][k+2] = numcases\n",
    "\n",
    "            #move to dependent variables at the end\n",
    "            if data[i][21] == 'P':\n",
    "                regressionvars[25][k] = 1\n",
    "                regressionvars[25][k+1] = 1\n",
    "                regressionvars[25][k+2] = 1\n",
    "            elif data[i][21] == 'C':\n",
    "                regressionvars[26][k] = 1\n",
    "                regressionvars[26][k+1] = 1\n",
    "                regressionvars[26][k+2] = 1\n",
    "            if (data[i][1] == 'PTO'):\n",
    "                regressionvars[24][k] = 1\n",
    "                regressionvars[24][k+1] = 1\n",
    "                regressionvars[24][k+2] = 1\n",
    "            \n",
    "            \n",
    "            if num_Y_TB_majority == 3:\n",
    "                regressionvars[27][k] = 1\n",
    "                regressionvars[28][k] = 1\n",
    "                regressionvars[29][k] = 1\n",
    "                regressionvars[27][k+1] = 1\n",
    "                regressionvars[28][k+1] = 1\n",
    "                regressionvars[29][k+1] = 1\n",
    "                regressionvars[27][k+2] = 1\n",
    "                regressionvars[28][k+2] = 1\n",
    "                regressionvars[29][k+2] = 1\n",
    "            elif num_Y_TB_majority == 2:\n",
    "                regressionvars[27][k] = 1\n",
    "                regressionvars[28][k] = 1\n",
    "                regressionvars[56][k] = 1\n",
    "                regressionvars[27][k+1] = 1\n",
    "                regressionvars[28][k+1] = 1\n",
    "                regressionvars[56][k+1] = 1\n",
    "                regressionvars[27][k+2] = 1\n",
    "                regressionvars[28][k+2] = 1\n",
    "                regressionvars[56][k+2] = 1\n",
    "            elif num_Y_TB_majority == 1:\n",
    "                regressionvars[27][k] = 1\n",
    "                regressionvars[55][k] = 1\n",
    "                regressionvars[27][k+1] = 1\n",
    "                regressionvars[55][k+1] = 1\n",
    "                regressionvars[27][k+2] = 1\n",
    "                regressionvars[55][k+2] = 1\n",
    "            \n",
    "            if num_Y_PB_majority == 3:\n",
    "                regressionvars[30][k] = 1\n",
    "                regressionvars[31][k] = 1\n",
    "                regressionvars[32][k] = 1\n",
    "                regressionvars[30][k+1] = 1\n",
    "                regressionvars[31][k+1] = 1\n",
    "                regressionvars[32][k+1] = 1\n",
    "                regressionvars[30][k+2] = 1\n",
    "                regressionvars[31][k+2] = 1\n",
    "                regressionvars[32][k+2] = 1\n",
    "            elif num_Y_PB_majority == 2:\n",
    "                regressionvars[30][k] = 1\n",
    "                regressionvars[31][k] = 1\n",
    "                regressionvars[58][k] = 1\n",
    "                regressionvars[30][k+1] = 1\n",
    "                regressionvars[31][k+1] = 1\n",
    "                regressionvars[58][k+1] = 1\n",
    "                regressionvars[30][k+2] = 1\n",
    "                regressionvars[31][k+2] = 1\n",
    "                regressionvars[58][k+2] = 1\n",
    "            elif num_Y_PB_majority == 1:\n",
    "                regressionvars[30][k] = 1\n",
    "                regressionvars[57][k] = 1\n",
    "                regressionvars[30][k+1] = 1\n",
    "                regressionvars[57][k+1] = 1\n",
    "                regressionvars[30][k+2] = 1\n",
    "                regressionvars[57][k+2] = 1\n",
    "            \n",
    "            if num_Y_R_majority == 3:\n",
    "                regressionvars[33][k] = 1\n",
    "                regressionvars[34][k] = 1\n",
    "                regressionvars[35][k] = 1\n",
    "                regressionvars[33][k+1] = 1\n",
    "                regressionvars[34][k+1] = 1\n",
    "                regressionvars[35][k+1] = 1\n",
    "                regressionvars[33][k+2] = 1\n",
    "                regressionvars[34][k+2] = 1\n",
    "                regressionvars[35][k+2] = 1\n",
    "            elif num_Y_R_majority == 2:\n",
    "                regressionvars[33][k] = 1\n",
    "                regressionvars[34][k] = 1\n",
    "                regressionvars[60][k] = 1\n",
    "                regressionvars[33][k+1] = 1\n",
    "                regressionvars[34][k+1] = 1\n",
    "                regressionvars[60][k+1] = 1\n",
    "                regressionvars[33][k+2] = 1\n",
    "                regressionvars[34][k+2] = 1\n",
    "                regressionvars[60][k+2] = 1\n",
    "            elif num_Y_R_majority == 1:\n",
    "                regressionvars[33][k] = 1\n",
    "                regressionvars[59][k] = 1\n",
    "                regressionvars[33][k+1] = 1\n",
    "                regressionvars[59][k+1] = 1\n",
    "                regressionvars[33][k+2] = 1\n",
    "                regressionvars[59][k+2] = 1\n",
    "                \n",
    "            if num_Y_EBP_majority == 3:\n",
    "                regressionvars[36][k] = 1\n",
    "                regressionvars[37][k] = 1\n",
    "                regressionvars[38][k] = 1\n",
    "            elif num_Y_EBP_majority == 2:\n",
    "                regressionvars[36][k] = 1\n",
    "                regressionvars[37][k] = 1\n",
    "                regressionvars[62][k] = 1\n",
    "            elif num_Y_EBP_majority == 1:\n",
    "                regressionvars[36][k] = 1\n",
    "                regressionvars[61][k] = 1\n",
    "                \n",
    "            if num_Y_DP_majority == 3:\n",
    "                regressionvars[39][k] = 1\n",
    "                regressionvars[40][k] = 1\n",
    "                regressionvars[41][k] = 1\n",
    "            elif num_Y_DP_majority == 2:\n",
    "                regressionvars[39][k] = 1\n",
    "                regressionvars[40][k] = 1\n",
    "                regressionvars[64][k] = 1\n",
    "            elif num_Y_DP_majority == 1:\n",
    "                regressionvars[39][k] = 1\n",
    "                regressionvars[63][k] = 1\n",
    "            \n",
    "            if num_Y_DPNN_majority == 3:\n",
    "                regressionvars[65][k] = 1\n",
    "                regressionvars[66][k] = 1\n",
    "                regressionvars[67][k] = 1\n",
    "            elif num_Y_DPNN_majority == 2:\n",
    "                regressionvars[65][k] = 1\n",
    "                regressionvars[66][k] = 1\n",
    "                regressionvars[69][k] = 1\n",
    "            elif num_Y_DPNN_majority == 1:\n",
    "                regressionvars[65][k] = 1\n",
    "                regressionvars[68][k] = 1\n",
    "            \n",
    "            if num_Y_CHEAT_majority == 3:\n",
    "                regressionvars[70][k] = 1\n",
    "                regressionvars[71][k] = 1\n",
    "                regressionvars[72][k] = 1\n",
    "            elif num_Y_CHEAT_majority == 2:\n",
    "                regressionvars[70][k] = 1\n",
    "                regressionvars[71][k] = 1\n",
    "                regressionvars[74][k] = 1\n",
    "            elif num_Y_CHEAT_majority == 1:\n",
    "                regressionvars[70][k] = 1\n",
    "                regressionvars[73][k] = 1\n",
    "            \n",
    "            if num_P_OB == 3:\n",
    "                regressionvars[81][k] = 1\n",
    "                regressionvars[82][k] = 1\n",
    "                regressionvars[83][k] = 1\n",
    "                regressionvars[81][k+1] = 1\n",
    "                regressionvars[82][k+1] = 1\n",
    "                regressionvars[83][k+1] = 1\n",
    "                regressionvars[81][k+2] = 1\n",
    "                regressionvars[82][k+2] = 1\n",
    "                regressionvars[83][k+2] = 1\n",
    "            elif num_P_OB == 2:\n",
    "                regressionvars[81][k] = 1\n",
    "                regressionvars[82][k] = 1\n",
    "                regressionvars[81][k+1] = 1\n",
    "                regressionvars[82][k+1] = 1\n",
    "                regressionvars[81][k+2] = 1\n",
    "                regressionvars[82][k+2] = 1\n",
    "            elif num_P_OB == 1:\n",
    "                regressionvars[81][k] = 1\n",
    "                regressionvars[81][k+1] = 1\n",
    "                regressionvars[81][k+2] = 1\n",
    "                \n",
    "            \n",
    "            \n",
    "            regressionvars[42][k] = num_Y_TB_majority\n",
    "            regressionvars[43][k] = num_Y_PB_majority\n",
    "            regressionvars[44][k] = num_Y_R_majority\n",
    "            regressionvars[45][k] = num_Y_EBP_majority\n",
    "            regressionvars[46][k] = num_Y_DP_majority\n",
    "            regressionvars[75][k] = num_Y_DPNN_majority\n",
    "            regressionvars[76][k] = num_Y_CHEAT_majority\n",
    "            regressionvars[80][k] = num_P_OB\n",
    "            regressionvars[42][k+1] = num_Y_TB_majority\n",
    "            regressionvars[43][k+1] = num_Y_PB_majority\n",
    "            regressionvars[44][k+1] = num_Y_R_majority\n",
    "            regressionvars[45][k+1] = num_Y_EBP_majority\n",
    "            regressionvars[46][k+1] = num_Y_DP_majority\n",
    "            regressionvars[75][k+1] = num_Y_DPNN_majority\n",
    "            regressionvars[76][k+1] = num_Y_CHEAT_majority\n",
    "            regressionvars[80][k+1] = num_P_OB\n",
    "            regressionvars[42][k+2] = num_Y_TB_majority\n",
    "            regressionvars[43][k+2] = num_Y_PB_majority\n",
    "            regressionvars[44][k+2] = num_Y_R_majority\n",
    "            regressionvars[45][k+2] = num_Y_EBP_majority\n",
    "            regressionvars[46][k+2] = num_Y_DP_majority\n",
    "            regressionvars[75][k+2] = num_Y_DPNN_majority\n",
    "            regressionvars[76][k+2] = num_Y_CHEAT_majority\n",
    "            regressionvars[80][k+2] = num_P_OB\n",
    "            \n",
    "#             ji = 10 #author instance, don't use unless you're going to look only at cases with an author ... \n",
    "#             temp = k\n",
    "#             k = i\n",
    "#             #en banc pro P\n",
    "#             if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Moore' or data[k][ji] == 'Mayer' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman':\n",
    "#                 regressionvars[77][temp] = 1\n",
    "#             #en banc pro C \n",
    "#             if data[k][ji] == 'Lourie' or  data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == 'Schall' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Hughes':\n",
    "#                 regressionvars[77][temp] = 0\n",
    "#             k = temp\n",
    "            \n",
    "            \n",
    "            if int(data[i][0].strftime('%Y')) == 2014:\n",
    "                regressionvars[47][k] = 1\n",
    "                regressionvars[47][k+1] = 1\n",
    "                regressionvars[47][k+2] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2015:\n",
    "                regressionvars[48][k] = 1\n",
    "                regressionvars[48][k+1] = 1\n",
    "                regressionvars[48][k+2] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2016:\n",
    "                regressionvars[49][k] = 1\n",
    "                regressionvars[49][k+1] = 1\n",
    "                regressionvars[49][k+2] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2017:\n",
    "                regressionvars[50][k] = 1\n",
    "                regressionvars[50][k+1] = 1\n",
    "                regressionvars[50][k+2] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2018:\n",
    "                regressionvars[51][k] = 1\n",
    "                regressionvars[51][k+1] = 1\n",
    "                regressionvars[51][k+2] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2019:\n",
    "                regressionvars[52][k] = 1\n",
    "                regressionvars[52][k+1] = 1\n",
    "                regressionvars[52][k+2] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2020:\n",
    "                regressionvars[53][k] = 1\n",
    "                regressionvars[53][k+1] = 1\n",
    "                regressionvars[53][k+2] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2021:\n",
    "                regressionvars[54][k] = 1\n",
    "                regressionvars[54][k+1] = 1\n",
    "                regressionvars[54][k+2] = 1\n",
    "    \n",
    "    \n",
    "            #move to judge independent variables\n",
    "            j = 2\n",
    "            while j < numJudges + 2:\n",
    "                \n",
    "                if (data[i][6] == regressionvars[j][0]):\n",
    "                    regressionvars[j][k+1] = 1\n",
    "                    regressionvars[j][k+2] = 1\n",
    "                if (data[i][7] == regressionvars[j][0]):\n",
    "                    regressionvars[j][k] = 1\n",
    "                    regressionvars[j][k+2] = 1\n",
    "                if (data[i][8] == regressionvars[j][0]):\n",
    "                    regressionvars[j][k] = 1\n",
    "                    regressionvars[j][k+1] = 1\n",
    "                    \n",
    "                j = j + 1  \n",
    "            \n",
    "            \n",
    "            \n",
    "            #get judges and votes\n",
    "            j = 0\n",
    "            while j < len(judgeids):\n",
    "                if data[i][6] == judgeids[j]:\n",
    "                    regressionvars[85][k] = j + 1\n",
    "                    regressionvars[102+j][k] = 1\n",
    "                if data[i][7] == judgeids[j]:\n",
    "                    regressionvars[85][k+1] = j + 1\n",
    "                    regressionvars[102+j][k+1] = 1\n",
    "                if data[i][8] == judgeids[j]:\n",
    "                    regressionvars[85][k+2] = j + 1\n",
    "                    regressionvars[102+j][k+2] = 1\n",
    "                j = j + 1  \n",
    "            \n",
    "            \n",
    "            \n",
    "            #now get the independent variables and other POb variables\n",
    "            \n",
    "            \n",
    "            #initially, tentatively assume that num_P_OB and the others gives you the number of other pro-patent judges\n",
    "            regressionvars[86][k] = num_P_OB\n",
    "            regressionvars[86][k+1] = num_P_OB\n",
    "            regressionvars[86][k+2] = num_P_OB\n",
    "            \n",
    "            regressionvars[90][k] = num_Y_TB_majority\n",
    "            regressionvars[90][k+1] = num_Y_TB_majority\n",
    "            regressionvars[90][k+2] = num_Y_TB_majority\n",
    "            \n",
    "            regressionvars[94][k] = num_Y_PB_majority\n",
    "            regressionvars[94][k+1] = num_Y_PB_majority\n",
    "            regressionvars[94][k+2] = num_Y_PB_majority\n",
    "            \n",
    "            regressionvars[98][k] = num_Y_R_majority\n",
    "            regressionvars[98][k+1] = num_Y_R_majority\n",
    "            regressionvars[98][k+2] = num_Y_R_majority\n",
    "            \n",
    "            j = 0\n",
    "            while j < 3:\n",
    "                \n",
    "                if (((data[i][11] == 'Dissenting' or data[i][11] == 'Both') and data[i][12] == judgeids[regressionvars[85][k+j] -1]) or ((data[i][13] == 'Dissenting' or data[i][13] == 'Both') and data[i][14] == judgeids[regressionvars[85][k+j]-1])):\n",
    "                    if data[i][dissentinstance] == 'P' or data[i][dissentinstance] == 'C' or data[i][dissentinstance] == 'M':\n",
    "                        if data[i][dissentinstance] == 'P':\n",
    "                            regressionvars[0][k+j] = 1\n",
    "                        elif data[i][dissentinstance] == 'C':\n",
    "                            regressionvars[1][k+j] = 1\n",
    "                    else:\n",
    "                        print('error')\n",
    "                        print(i)\n",
    "                else:\n",
    "                    if data[i][instance] == 'P':\n",
    "                        regressionvars[0][k+j] = 1\n",
    "                    elif data[i][instance] == 'C':\n",
    "                        regressionvars[1][k+j] = 1\n",
    "                    \n",
    "                    #outcomes in validity cases\n",
    "                    if data[i][24] == 'M' or data[i][25] == 'M' or data[i][26] == 'M':\n",
    "                        regressionvars[78][k] = 0\n",
    "                        regressionvars[79][k] = 0\n",
    "                    elif ( (data[i][24] == 'P' or data[i][25] == 'P' or data[i][26] == 'P') and (data[i][24] == 'C' or data[i][25] == 'C' or data[i][26] == 'C') ):\n",
    "                        regressionvars[78][k] = 0\n",
    "                        regressionvars[79][k] = 0\n",
    "                    elif (data[i][24] == 'P' or data[i][25] == 'P' or data[i][26] == 'P'):\n",
    "                        regressionvars[78][k] = 1\n",
    "                        regressionvars[79][k] = 0\n",
    "                    elif (data[i][24] == 'C' or data[i][25] == 'C' or data[i][26] == 'C'):\n",
    "                        regressionvars[78][k] = 0\n",
    "                        regressionvars[79][k] = 1\n",
    "                \n",
    "                #####This is the SECOND spot to change\n",
    "                #observed other pro P data[i][ji] == 'Dyk' or  data[i][6+j] == 'Reyna' or data[i][6+j] == 'Prost' or data[i][6+j] == 'Bryson' or data[i][6+j] == 'Hughes' or data[i][6+j] == 'Plager' or data[i][6+j] == 'Schall' or data[i][6+j] == 'Mayer' or data[i][6+j] == 'Lourie' or data[i][6+j] == 'Clevenger':\n",
    "                if  data[i][6+j] == 'Stoll' or data[i][6+j] == 'Linn' or data[i][6+j] == 'Chen' or data[i][6+j] == 'Clevenger' or data[i][6+j] == \"O'Malley\" or data[i][6+j] == 'Rader' or data[i][6+j] == 'Wallach' or data[i][6+j] == 'Moore' or data[i][6+j] == 'Taranto' or data[i][6+j] == 'Newman':\n",
    "                    regressionvars[86][k+j] = regressionvars[86][k+j] - 1\n",
    "                    regressionvars[89][k+j] = 1\n",
    "                \n",
    "                if regressionvars[86][k+j] == 3:\n",
    "                    print('error cannot be three judges')\n",
    "                    print(i)\n",
    "                elif regressionvars[86][k+j] == 2:\n",
    "                    regressionvars[87][k+j] = 1 \n",
    "                    regressionvars[88][k+j] = 1 \n",
    "                elif regressionvars[86][k+j] == 1:\n",
    "                    regressionvars[87][k+j] = 1\n",
    "                \n",
    "                \n",
    "                #TB\n",
    "                if  data[i][6+j] == 'Stoll' or data[i][6+j] == 'Chen' or data[i][6+j] == 'Moore' or data[i][6+j] == 'Lourie' or data[i][6+j] == 'Newman' or data[i][6+j] == 'Linn':\n",
    "                    regressionvars[90][k+j] = regressionvars[90][k+j] - 1\n",
    "                    regressionvars[93][k+j] = 1\n",
    "                \n",
    "                if regressionvars[90][k+j] == 3:\n",
    "                    print('error cannot be three judges')\n",
    "                    print(i)\n",
    "                elif regressionvars[90][k+j] == 2:\n",
    "                    regressionvars[91][k+j] = 1 \n",
    "                    regressionvars[92][k+j] = 1 \n",
    "                elif regressionvars[90][k+j] == 1:\n",
    "                    regressionvars[91][k+j] = 1\n",
    "                \n",
    "                \n",
    "                #PB\n",
    "                if  data[i][6+j] == 'Stoll' or data[i][6+j] == 'Chen' or data[i][6+j] == 'Rader' or data[i][6+j] == 'Moore' or data[i][6+j] == 'Lourie' or data[i][6+j] == 'Taranto' or data[i][6+j] == 'Newman' or data[i][6+j] == 'Dyk' or data[i][6+j] == 'Linn':\n",
    "                    regressionvars[94][k+j] = regressionvars[94][k+j] - 1\n",
    "                    regressionvars[97][k+j] = 1\n",
    "                \n",
    "                if regressionvars[94][k+j] == 3:\n",
    "                    print('error cannot be three judges')\n",
    "                    print(i)\n",
    "                elif regressionvars[94][k+j] == 2:\n",
    "                    regressionvars[95][k+j] = 1 \n",
    "                    regressionvars[96][k+j] = 1 \n",
    "                elif regressionvars[94][k+j] == 1:\n",
    "                    regressionvars[95][k+j] = 1  \n",
    "                \n",
    "                \n",
    "                #R\n",
    "                if  data[i][6+j] == 'Rader' or data[i][6+j] == 'Moore' or data[i][6+j] == 'Lourie' or data[i][6+j] == 'Newman' or data[i][6+j] == 'Schall' or data[i][6+j] == 'Prost' or data[i][6+j] == 'Plager' or data[i][6+j] == 'Clevenger' or data[i][6+j] == 'Mayer':\n",
    "                    regressionvars[98][k+j] = regressionvars[98][k+j] - 1\n",
    "                    regressionvars[101][k+j] = 1\n",
    "                \n",
    "                if regressionvars[98][k+j] == 3:\n",
    "                    print('error cannot be three judges')\n",
    "                    print(i)\n",
    "                elif regressionvars[98][k+j] == 2:\n",
    "                    regressionvars[99][k+j] = 1 \n",
    "                    regressionvars[100][k+j] = 1 \n",
    "                elif regressionvars[98][k+j] == 1:\n",
    "                    regressionvars[99][k+j] = 1 \n",
    "                \n",
    "                \n",
    "                j = j + 1\n",
    "            \n",
    "            \n",
    "            k = k + 2\n",
    "    \n",
    "    i = i + 1\n",
    "\n",
    "df = pd.DataFrame(regressionvars).T\n",
    "#df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//Regression Data//\"+filefolder+\"//\"+filename+\" vars.xlsx\")\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//FINAL Regression Results//\"+filename+\" vars.xlsx\")\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "######code for author regression - e.g., remove per curiam and summary affirmances and need author info\n",
    "\n",
    "#create new dataset that's ready for doing regression analysis, for whatever you want\n",
    "#fixed to include the vars for favorability of district court ruling\n",
    "#here dkdkdk\n",
    "#this works right\n",
    "\n",
    "#don't forget you need to reorder everything by panel once you have excel document...\n",
    "\n",
    "columns = ['outcome P', 'outcome C', 'Stoll', 'Gilstrap', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Rader', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Stark', 'Clevenger', 'Fogel', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'PTO', 'DCT_P', 'DCT_C', '1plusTB', '2plusTB', '3TB', '1plusPB', '2plusPB', '3PB', '1plusR', '2plusR', '3R', '1plusEBP', '2plusEBP', '3EBP', '1plusDP', '2plusDP', '3DP', 'numTB', 'numPB', 'numR', 'numEBP', 'numDP', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021', '1TB', '2TB', '1PB', '2PB', '1R', '2R', '1EBP', '2EBP', '1DP', '2DP', '1plusDPNN', '2plusDPNN', '3DPNN', '1DPNN','2DPNN', '1plusCHEAT', '2plusCHEAT', '3CHEAT', '1CHEAT','2CHEAT', 'numDPNN', 'numCHEAT', 'author_EB', 'outcome P val', 'outcome C val', 'numPobserved', '1plusPOb', '2plusPOb', '3POb', 'judgeid', 'panelid', 'Precedential', 'R36', 'Affirmed']\n",
    "numJudges = 22\n",
    "filename = 'authorship Clevenger C' \n",
    "testingauthorship = True #this is so you don't worry about number of judges\n",
    "judgeids = ['Stoll', 'Chen', 'Schall', \"O'Malley\", 'Reyna', 'Prost', 'Bryson', 'Wallach', 'Plager', 'Moore', 'Lourie', 'Clevenger', 'Mayer', 'Taranto', 'Newman', 'Hughes', 'Dyk', 'Linn', 'Rader']\n",
    "\n",
    "\n",
    "rows, cols = len(data)+1, len(columns)\n",
    "regressionvars = [[0 for i in range(rows)] for j in range(cols)]\n",
    "instance = 19 #19 for everything, 24 for obviousness, 25 for PSM, 26 for other validity\n",
    "\n",
    "i = 0\n",
    "while i < cols:\n",
    "    regressionvars[i][0] = columns[i]\n",
    "    i = i + 1\n",
    "\n",
    "i = 0\n",
    "k = 0\n",
    "numbercases = 0\n",
    "while i < len(data):\n",
    "    \n",
    "    if (data[i][instance] == 'P' or data[i][instance] == 'C' or data[i][instance] == 'M') and (data[i][5] == 'Opinion') and (data[i][10] != \"Per Curiam\" and data[i][10] != \"Fogel\" and data[i][10] != \"Gilstrap\" and data[i][10] != \"Stark\"):  #and ( (int(data[i][0].strftime('%Y')) > 2015) or (int(data[i][0].strftime('%Y')) == 2015 and int(data[i][0].strftime('%m')) > 6) ): # and ((data[i][24] == 'P' or data[i][24] == 'C' or data[i][24] == 'M') or (data[i][25] == 'P' or data[i][25] == 'C' or data[i][25] == 'M') or (data[i][26] == 'P' or data[i][26] == 'C' or data[i][26] == 'M')):   # and ((data[i][24] == 'P' or data[i][24] == 'C' or data[i][24] == 'M') or (data[i][25] == 'P' or data[i][25] == 'C' or data[i][25] == 'M') or (data[i][26] == 'P' or data[i][26] == 'C' or data[i][26] == 'M')):  #and ( (int(data[i][0].strftime('%Y')) > 2015) or (int(data[i][0].strftime('%Y')) == 2015 and int(data[i][0].strftime('%m')) > 6) ): #and ((data[i][24] == 'P' or data[i][24] == 'C' or data[i][24] == 'M') or (data[i][25] == 'P' or data[i][25] == 'C' or data[i][25] == 'M') or (data[i][26] == 'P' or data[i][26] == 'C' or data[i][26] == 'M')): #and (data[i][5] == 'Opinion') and (data[i][10] != \"Per Curiam\" and data[i][10] != \"Per Curiam\" and data[i][10] != \"Fogel\" and data[i][10] != \"Gilstrap\" and data[i][10] != \"Stark\")): #and data[i][5] == 'Rule 36': # # and data[i][5] == 'Rule 36': #and data[i][1] == 'PTO': #need to make sure it was an actual decision we are coding for\n",
    "        \n",
    "        numbercases = numbercases + 1\n",
    "        \n",
    "        num_Y_TB_majority = 0\n",
    "        num_N_TB_majority = 0\n",
    "        num_Y_PB_majority = 0\n",
    "        num_N_PB_majority = 0\n",
    "        num_Y_R_majority = 0\n",
    "        num_N_R_majority = 0\n",
    "        num_Y_EBP_majority = 0\n",
    "        num_N_EBP_majority = 0\n",
    "        num_Y_DP_majority = 0\n",
    "        num_N_DP_majority = 0\n",
    "        num_Y_DPNN_majority = 0\n",
    "        num_N_DPNN_majority = 0\n",
    "        num_Y_CHEAT_majority = 0\n",
    "        num_N_CHEAT_majority = 0\n",
    "        num_P_OB = 0\n",
    "        num_C_OB = 0\n",
    "\n",
    "        ji = 6\n",
    "        while ji < 9:\n",
    "\n",
    "            temp = k\n",
    "            k = i\n",
    "            \n",
    "            #data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes':\n",
    "               \n",
    "            \n",
    "            #prior patent experience\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn':\n",
    "                num_Y_PB_majority = num_Y_PB_majority + 1\n",
    "            #no prior background\n",
    "            if data[k][ji] == 'Schall' or data[k][ji] == 'Reyna' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes':\n",
    "                num_N_PB_majority = num_N_PB_majority + 1\n",
    "\n",
    "            #technical background\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn':\n",
    "                num_Y_TB_majority = num_Y_TB_majority + 1\n",
    "            #no technical background\n",
    "            if data[k][ji] == 'Schall' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes' or data[k][ji] == 'Rader' or data[k][ji] == 'Taranto' or data[k][ji] == 'Dyk':\n",
    "                num_N_TB_majority = num_N_TB_majority + 1\n",
    "\n",
    "            #democrat\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Taranto' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Reyna' or data[k][ji] == 'Bryson' or data[k][ji] == 'Wallach' or data[k][ji] == 'Hughes':\n",
    "                num_N_R_majority = num_N_R_majority + 1\n",
    "            #republican\n",
    "            if data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Lourie' or data[k][ji] == 'Newman' or data[k][ji] == 'Schall' or data[k][ji] == 'Prost' or data[k][ji] == 'Plager' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Mayer':\n",
    "                num_Y_R_majority = num_Y_R_majority + 1\n",
    "            \n",
    "               \n",
    "            #en banc pro P\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Moore' or data[k][ji] == 'Mayer' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Plager' or data[k][ji] == 'Schall' or data[k][ji] == 'Clevenger':\n",
    "                num_Y_EBP_majority = num_Y_EBP_majority + 1\n",
    "            #en banc pro C \n",
    "            if data[k][ji] == 'Lourie' or data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Hughes':\n",
    "                num_N_EBP_majority = num_N_EBP_majority + 1\n",
    "            \n",
    "            #dissents pro P\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Plager':\n",
    "                num_Y_DP_majority = num_Y_DP_majority + 1\n",
    "            #dissents pro C \n",
    "            if data[k][ji] == 'Lourie' or  data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == 'Schall' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Hughes' or data[k][ji] == 'Moore' or data[k][ji] == 'Mayer':\n",
    "                num_N_DP_majority = num_N_DP_majority + 1\n",
    "            \n",
    "            #dissents pro P ignore Newman\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Plager' or data[k][ji] == 'Schall' or data[k][ji] == 'Moore':\n",
    "                num_Y_DPNN_majority = num_Y_DPNN_majority + 1\n",
    "            #dissents pro C ignore Newman\n",
    "            if data[k][ji] == 'Lourie' or  data[k][ji] == 'Dyk' or data[k][ji] == 'Linn' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Clevenger' or data[k][ji] == 'Hughes' or data[k][ji] == 'Mayer':\n",
    "                num_N_DPNN_majority = num_N_DPNN_majority + 1\n",
    "                \n",
    "            #en banc pro P CHEAT\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Moore' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn' or data[k][ji] == 'Clevenger':\n",
    "                num_Y_CHEAT_majority = num_Y_CHEAT_majority + 1\n",
    "            #en banc pro C CHEAT\n",
    "            if data[k][ji] == 'Lourie' or  data[k][ji] == 'Dyk' or data[k][ji] == 'Schall' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Plager' or data[k][ji] == 'Hughes' or data[k][ji] == 'Wallach' or data[k][ji] == 'Mayer':\n",
    "                num_N_CHEAT_majority = num_N_CHEAT_majority + 1\n",
    "            \n",
    "            #observed pro P\n",
    "            if  data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Moore' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman' or data[k][ji] == 'Linn':\n",
    "                num_P_OB = num_P_OB + 1\n",
    "            #observed pro C \n",
    "            if  data[k][ji] == 'Dyk' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Hughes' or data[k][ji] == 'Mayer' or data[k][ji] == 'Lourie' or data[k][ji] == 'Plager' or data[k][ji] == 'Schall' or data[k][ji] == 'Clevenger':\n",
    "                num_C_OB = num_C_OB + 1\n",
    "            \n",
    "            k = temp\n",
    "            ji = ji + 1\n",
    "        \n",
    "        \n",
    "        if ((num_P_OB + num_C_OB) == 3) or testingauthorship == True:\n",
    "\n",
    "            #increment counter for the actual data\n",
    "            k = k + 1 #want it to be 1 for first iteration b/c we have a header\n",
    "\n",
    "            #start with the independent variable\n",
    "            if data[i][instance] == 'P':\n",
    "                regressionvars[0][k] = 1\n",
    "            elif data[i][instance] == 'C':\n",
    "                regressionvars[1][k] = 1\n",
    "\n",
    "            #move to dependent variables at the end\n",
    "            if data[i][21] == 'P':\n",
    "                regressionvars[25][k] = 1\n",
    "            elif data[i][21] == 'C':\n",
    "                regressionvars[26][k] = 1\n",
    "            if (data[i][1] == 'PTO'):\n",
    "                regressionvars[24][k] = 1\n",
    "            \n",
    "            \n",
    "            if (data[i][3] == 'Precedential'):\n",
    "                regressionvars[86][k] = 1\n",
    "            elif (data[i][5] == 'Rule 36'):\n",
    "                regressionvars[87][k] = 1\n",
    "            \n",
    "            if data[i][18] == 'A':\n",
    "                regressionvars[88][k] = 1\n",
    "            \n",
    "            if num_Y_TB_majority == 3:\n",
    "                regressionvars[27][k] = 1\n",
    "                regressionvars[28][k] = 1\n",
    "                regressionvars[29][k] = 1\n",
    "            elif num_Y_TB_majority == 2:\n",
    "                regressionvars[27][k] = 1\n",
    "                regressionvars[28][k] = 1\n",
    "                regressionvars[56][k] = 1\n",
    "            elif num_Y_TB_majority == 1:\n",
    "                regressionvars[27][k] = 1\n",
    "                regressionvars[55][k] = 1\n",
    "            \n",
    "            if num_Y_PB_majority == 3:\n",
    "                regressionvars[30][k] = 1\n",
    "                regressionvars[31][k] = 1\n",
    "                regressionvars[32][k] = 1\n",
    "            elif num_Y_PB_majority == 2:\n",
    "                regressionvars[30][k] = 1\n",
    "                regressionvars[31][k] = 1\n",
    "                regressionvars[58][k] = 1\n",
    "            elif num_Y_PB_majority == 1:\n",
    "                regressionvars[30][k] = 1\n",
    "                regressionvars[57][k] = 1\n",
    "            \n",
    "            if num_Y_R_majority == 3:\n",
    "                regressionvars[33][k] = 1\n",
    "                regressionvars[34][k] = 1\n",
    "                regressionvars[35][k] = 1\n",
    "            elif num_Y_R_majority == 2:\n",
    "                regressionvars[33][k] = 1\n",
    "                regressionvars[34][k] = 1\n",
    "                regressionvars[60][k] = 1\n",
    "            elif num_Y_R_majority == 1:\n",
    "                regressionvars[33][k] = 1\n",
    "                regressionvars[59][k] = 1\n",
    "                \n",
    "            if num_Y_EBP_majority == 3:\n",
    "                regressionvars[36][k] = 1\n",
    "                regressionvars[37][k] = 1\n",
    "                regressionvars[38][k] = 1\n",
    "            elif num_Y_EBP_majority == 2:\n",
    "                regressionvars[36][k] = 1\n",
    "                regressionvars[37][k] = 1\n",
    "                regressionvars[62][k] = 1\n",
    "            elif num_Y_EBP_majority == 1:\n",
    "                regressionvars[36][k] = 1\n",
    "                regressionvars[61][k] = 1\n",
    "                \n",
    "            if num_Y_DP_majority == 3:\n",
    "                regressionvars[39][k] = 1\n",
    "                regressionvars[40][k] = 1\n",
    "                regressionvars[41][k] = 1\n",
    "            elif num_Y_DP_majority == 2:\n",
    "                regressionvars[39][k] = 1\n",
    "                regressionvars[40][k] = 1\n",
    "                regressionvars[64][k] = 1\n",
    "            elif num_Y_DP_majority == 1:\n",
    "                regressionvars[39][k] = 1\n",
    "                regressionvars[63][k] = 1\n",
    "            \n",
    "            if num_Y_DPNN_majority == 3:\n",
    "                regressionvars[65][k] = 1\n",
    "                regressionvars[66][k] = 1\n",
    "                regressionvars[67][k] = 1\n",
    "            elif num_Y_DPNN_majority == 2:\n",
    "                regressionvars[65][k] = 1\n",
    "                regressionvars[66][k] = 1\n",
    "                regressionvars[69][k] = 1\n",
    "            elif num_Y_DPNN_majority == 1:\n",
    "                regressionvars[65][k] = 1\n",
    "                regressionvars[68][k] = 1\n",
    "            \n",
    "            if num_Y_CHEAT_majority == 3:\n",
    "                regressionvars[70][k] = 1\n",
    "                regressionvars[71][k] = 1\n",
    "                regressionvars[72][k] = 1\n",
    "            elif num_Y_CHEAT_majority == 2:\n",
    "                regressionvars[70][k] = 1\n",
    "                regressionvars[71][k] = 1\n",
    "                regressionvars[74][k] = 1\n",
    "            elif num_Y_CHEAT_majority == 1:\n",
    "                regressionvars[70][k] = 1\n",
    "                regressionvars[73][k] = 1\n",
    "            \n",
    "            if num_P_OB == 3:\n",
    "                regressionvars[81][k] = 1\n",
    "                regressionvars[82][k] = 1\n",
    "                regressionvars[83][k] = 1\n",
    "            elif num_P_OB == 2:\n",
    "                regressionvars[81][k] = 1\n",
    "                regressionvars[82][k] = 1\n",
    "            elif num_P_OB == 1:\n",
    "                regressionvars[81][k] = 1\n",
    "                \n",
    "            \n",
    "            \n",
    "            regressionvars[42][k] = num_Y_TB_majority\n",
    "            regressionvars[43][k] = num_Y_PB_majority\n",
    "            regressionvars[44][k] = num_Y_R_majority\n",
    "            regressionvars[45][k] = num_Y_EBP_majority\n",
    "            regressionvars[46][k] = num_Y_DP_majority\n",
    "            regressionvars[75][k] = num_Y_DPNN_majority\n",
    "            regressionvars[76][k] = num_Y_CHEAT_majority\n",
    "            regressionvars[80][k] = num_P_OB\n",
    "            \n",
    "            ji = 10 #author instance, don't use unless you're going to look only at cases with an author ... \n",
    "            temp = k\n",
    "            k = i\n",
    "            #observed voting pro P\n",
    "            if data[k][ji] == 'Stoll' or data[k][ji] == 'Chen' or data[k][ji] == 'Linn' or data[k][ji] == \"O'Malley\" or data[k][ji] == 'Rader' or data[k][ji] == 'Wallach' or data[k][ji] == 'Moore' or data[k][ji] == 'Taranto' or data[k][ji] == 'Newman':\n",
    "                regressionvars[77][temp] = 1\n",
    "            #observed voting pro C \n",
    "            if data[k][ji] == 'Lourie' or  data[k][ji] == 'Dyk' or data[k][ji] == 'Schall' or  data[k][ji] == 'Reyna' or data[k][ji] == 'Prost' or data[k][ji] == 'Bryson' or data[k][ji] == 'Plager' or data[k][ji] == 'Mayer' or data[k][ji] == 'Hughes' or data[k][ji] == 'Clevenger':\n",
    "                regressionvars[77][temp] = 0\n",
    "            k = temp\n",
    "            \n",
    "            ji = 0\n",
    "            while ji < len(judgeids):\n",
    "                if data[i][10] == judgeids[ji]:\n",
    "                    regressionvars[84][k] = ji + 1\n",
    "                ji = ji + 1\n",
    "            \n",
    "            \n",
    "            if int(data[i][0].strftime('%Y')) == 2014:\n",
    "                regressionvars[47][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2015:\n",
    "                regressionvars[48][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2016:\n",
    "                regressionvars[49][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2017:\n",
    "                regressionvars[50][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2018:\n",
    "                regressionvars[51][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2019:\n",
    "                regressionvars[52][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2020:\n",
    "                regressionvars[53][k] = 1\n",
    "            if int(data[i][0].strftime('%Y')) == 2021:\n",
    "                regressionvars[54][k] = 1\n",
    "        \n",
    "            #outcomes in validity cases, this does not work!!!!!\n",
    "            #start with the independent variable\n",
    "            if data[i][24] == 'M' or data[i][25] == 'M' or data[i][26] == 'M':\n",
    "                regressionvars[78][k] = 0\n",
    "                regressionvars[79][k] = 0\n",
    "            elif ( (data[i][24] == 'P' or data[i][25] == 'P' or data[i][26] == 'P') and (data[i][24] == 'C' or data[i][25] == 'C' or data[i][26] == 'C') ):\n",
    "                regressionvars[78][k] = 0\n",
    "                regressionvars[79][k] = 0\n",
    "            elif (data[i][24] == 'P' or data[i][25] == 'P' or data[i][26] == 'P'):\n",
    "                regressionvars[78][k] = 1\n",
    "                regressionvars[79][k] = 0\n",
    "            elif (data[i][24] == 'C' or data[i][25] == 'C' or data[i][26] == 'C'):\n",
    "                regressionvars[78][k] = 0\n",
    "                regressionvars[79][k] = 1\n",
    "    \n",
    "    \n",
    "            #move to judge independent variables\n",
    "            j = 2\n",
    "            while j < numJudges + 2:\n",
    "                if ( (data[i][7] == regressionvars[j][0]) or (data[i][8] == regressionvars[j][0]) or (data[i][6] == regressionvars[j][0]) ):\n",
    "                    regressionvars[j][k] = 1\n",
    "                j = j + 1   \n",
    "    \n",
    "    i = i + 1\n",
    "\n",
    "\n",
    "    \n",
    "    \n",
    "i = 1\n",
    "k = 1\n",
    "while i < len(regressionvars[0]):\n",
    "    \n",
    "    #hasn't been identified\n",
    "    if regressionvars[85][i] == 0:\n",
    "        regressionvars[85][i] = k #give it the next index\n",
    "        \n",
    "        #identify the judges\n",
    "        panelids = [0,0,0]\n",
    "        index = 0\n",
    "        j = 2\n",
    "        while j < numJudges + 2:\n",
    "            if regressionvars[j][i] == 1:\n",
    "                panelids[index] = j\n",
    "                index = index + 1\n",
    "            j = j + 1\n",
    "        \n",
    "        #identify cases with same panel and, if so, give them same index\n",
    "        j = i\n",
    "        while j < len(regressionvars[0]):\n",
    "            \n",
    "            if regressionvars[panelids[0]][j] == 1 and regressionvars[panelids[1]][j] == 1 and regressionvars[panelids[2]][j] == 1:\n",
    "                regressionvars[85][j] = k\n",
    "            \n",
    "            j = j + 1\n",
    "        \n",
    "        k = k + 1 #add one to the index for next go around\n",
    "    \n",
    "    i = i + 1   \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "    \n",
    "df = pd.DataFrame(regressionvars).T\n",
    "df.to_excel(excel_writer = \"C://Users//hi-ma//Desktop//Research//Judicial Decisionmaking Federal Circuit//Excel Data//FINAL Regression Results//\"+filename+\" vars.xlsx\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
